this post was submitted on 25 Jul 2023
143 points (92.8% liked)
Memes
45581 readers
1 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Worst words heard today: reset has reset to the last head that was pushed to remote
Goodbye three local commits, I’ll miss you
git reflog! It gives the history of commits that yourHEADhas previously pointed at.If a rebase goes bad, you can fish out your old
HEADand recover your pre-rebase state.When I have zero faith in myself I'm not above copying the whole committed file and pasting it.in a dm to myself in slack.
Sometimes you're in a rush and it's good to look after yourself lol.
Also reflog, but the void is calling for code.