Oh Shit, Git
ohshitgit.com
Oh Shit, Git
1–10 of 237 posts
Re: Oh Shit, Git
#2If you stick to master-only development things like commiting to the wrong branch can't happen: https://medium.com/@mattia.battiston/why-i-love-trunk-based-...
Re: Oh Shit, Git
#3https://www.youtube.com/watch?v=3mOVK0oSH2M
Every Git novice should check out this awesome introductory video ;)
Re: Oh Shit, Git
#4Git is a reminder why even the best minds in software development sometimes really should talk to UX/UI people.
Re: Oh Shit, Git
#5I love this resource!
Thanks for posting it!
Re: Oh Shit, Git
#6Just delete the directory and clone it again.
Re: Oh Shit, Git
#7'How to undo almost anything with git' [0] is a similar resource, worth bookmarking in my opinion.
[0]: https://github.com/blog/2019-how-to-undo-almost-anything-wit...
Re: Oh Shit, Git
#8Most excellent!
Re: Oh Shit, Git
#9> This usually happens to me if I commit, then run tests/linters... and FML, I didn't put a space after an equals sign
This is why it's good to put the linting in a git hook on commit or stage, so you literally can't commit without being formatted correctedly.
Re: Oh Shit, Git
#10Just delete the directory and clone it again.