Oh Shit, Git!?!

Created on 2023-03-31T21:20:32-05:00

Return to the Index

This card pertains to a resource available on the internet.

This card can also be read via Gemini.

Panic advice for when you botch up with Git.

Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!
Oh shit, I committed and immediately realized I need to make one small change!
Oh shit, I need to change the message on my last commit!
Oh shit, I accidentally committed something to master that should have been on a brand new branch!
Oh shit, I accidentally committed to the wrong branch!
Oh shit, I tried to run a diff but nothing happened?!
Oh shit, I need to undo a commit from like 5 commits ago!
Oh shit, I need to undo my changes to a file!
Fuck this noise, I give up.