UNSTABLE BY DESIGN
Oh shit. What did you push?
Your repository is probably fine. Your career? Not so sure.
Emergency tools for unfortunate developers.
New to Git? Start here$ git push --force origin main
Enumerating objects: 42
Writing objects: 100%
✖ Remote: Production is crying.
→ Initiating damage control...
// Emergency kit
Everything you need after a bad push
Git Emergency
Step-by-step procedures to recover a branch, undo a commit, find lost changes or repair an accidental push.
OpenGit Toolbox
A .gitignore generator, an excuse generator and other utilities that save your day (or at least your face).
OpenExcuse Generator
Explain to your team why production is down. Professional, sarcastic or dramatic.
OpenGit Academy
Tutorials and mini-guides to understand Git and stop making the classic mistakes.
OpenHall of Shame
Anonymous confessions of developers who did worse than you. You are not alone.
OpenCopy & Paste
Ready-to-copy commands with plain explanations and their risk level.
OpenFunny on the outside. Serious on the inside.
Every recovery command is rated by risk. Destructive ones come with warnings and backup advice. Laugh at your mistake, learn something, actually save your repository.
- ● safe — git reflog
- ● caution — git revert <sha>
- ● destructive — git reset --hard
The Fucking Git Dictionary
- git push --force
- Gamble with your career.
- git reset --hard
- Make your problems disappear. And your work.
- git stash
- Sweep your problems under the rug.
- git reflog
- Your last hope.
- git cherry-pick
- Steal a commit with elegance.
- git blame
- Find someone to blame. Find yourself.
PUSH FIRST. PANIC LATER.
Your repository. Our condolences.