Resources 📚
There are so very many things to read about Git on the internet, but these are some of my favourites.
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.
ohshitgit.com by Katie-Sylor Miller
Julia Evans (@b0rk)
If you find git confusing, don’t worry! You’re not alone. People who’ve been using it every day for years still make mistakes and aren’t sure how to fix them. A lot of git commands are confusingly named (why do you create new branches with git checkout?) and there are 20 million different ways to do everything. This zine explains git fundamentals (what’s a SHA?) and how to fix a lot of common git mistakes (I committed to the wrong branch!!).
✨ Wizard Zines: Oh shit, git! ✨
Julia has also written som great blog posts, like these:
Official Git documentation
These were once totally incomprehensible to me, but as I learn more and more Git, I have started to find them useful and I think it’s helpful to practice navigate this site. I like this overview that lists commands in categories under different headings: Reference — git-scm.com/docs
Getting more used to reading the way things are described officially, will make it easier to use the documentation available right in the terminal from commands like these:
git --help
git help -a
git rebase -h