Skip to content

Instantly share code, notes, and snippets.

View andrew-phi's full-sized avatar

Andrew Philippov andrew-phi

View GitHub Profile
@td0
td0 / ohshitgit.md
Last active October 4, 2023 13:10
Things to-do if you fuck you git up

Oh shit, git!

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.