Oh Shit, Git (ohshitgit.com)
recommended by 1 user | 2022 | 382 points by layer8 | git | original thread |
One user recommended this thread. What they said:
fargle Jun 25, 2022 | on: Dangit, Git? | context

I like this one: https://news.ycombinator.com/item?id=31874308 ( https://ohshitgit.com/ ) better... Great stuff!

BUT hopefully the author is reading this: PLEASE PLEASE remove the part about `sudo rm -r fucking-git-repo-dir` or at least if it's satire tell people not to really do this. It should be:

    cd ..
    tar -cvzf fucking-git-repo.tar.gz fucking-git-repo-dir
    echo "Please for the love of god help me I've fucked up and <describe problem>" | mail -s "NEED HEPL! git disaster" git-expert@xyzcompany.com -A fucking-git-repo.tar.gz
    git clone https://some.github.url/fucking-git-repo-dir.git fucking-git-repo-dir2
    cd fucking-git-repo-dir2

As long as you don't delete or muck with the `.git/` folder or files that aren't not be checked in, you have pretty fair odds that the mess can be untangled by someone either more knowledgeable about git or less pissed off.