- cross-posted to:
- programmer_humor@programming.dev
- cross-posted to:
- programmer_humor@programming.dev
One hell of an emergency number
Praise be Magit, which actually allows me to handle stuff like that moderately confidently.
No AI summary 😍
I will say. if you have no idea at least clone your branch so you can experiment on it.
Experiment on the suicide hotline? I’m sure they won’t appreciate that!
I actually feel disgusted when I see Google search now. It’s just so bad that even the logo does it.
git push --force
“Fuck the code review!”
If you’ve ever royally fucked something up in git, that hotline is necessary
Never understood why this is such a trope. There’s very little you can’t recover in git (basically, only changes you never committed in the first place).
Have you ever tried a rebase?
Not sure if serious or not, but yeah I use interactive rebases every day, many times a day (it’s nice for keeping a clean, logical history of atomic changes).
It’s very simple to recover if you accidentally do something you don’t intend (
git rebase --abort
if the rebase is still active,git reflog
to find the commit before the rebase if it’s finished).