This is helpful when you get errors: https://ohshitgit.com/
xkcd
A community for a webcomic of romance, sarcasm, math, and language.
As someone new to using git.. Thank you!!
I've been using git for 10+ years and still sometimes do this. I know I could fix it, I also pretty much know what to do to fix it. However nuking the thing from orbit and restarting takes like 30 secs, so it's never worth fixing.
Git is something that is very comfortable to use after a year or two, but when you initially start using it, it is just so easy to mess things up in ways that are unrecoverable. I remember the silly days when I'd back up all my changes first before using git since I would so regularly lose everything through a combination of git commands.
It's easy for me now, but the initial stages punish mistakes severely. It's the dark souls of source control, except it's not really fun. It's just a very beginner unfriendly tool.
A good GUI can solve most problems.
If my colleagues mess something up in their fancy GUIs, they come to me to fix it in the terminal.
SVN gang rise up.
There's dozens of us! Dozens!
SCCS represent!
I'm using Mercurial for the last 2 years at current company, before that it was 5-7 years of Git on various jobs. It's so much better if you use it correctly (no long-living or big branches). I forgot what hell Git was sometimes.
I have used Mercurial at work for years, and Git for side projects. I screw up far less often in Mercurial, and its tools are easy to use. It's strange how thoroughly Git took over.
I used hg until python switched to git.
if python isn't going to bother them the battle is lost.
Git --gud
I literally did this yesterday.
I've since found chats with Bing are surprisingly informative.