there was SO MANY great responses to my question the other day about what annoying git mistakes people make and I compiled them here: https://gist.github.com/jvns/f7d2db163298423751a9d1a823d7c7c1 (original post: https://social.jvns.ca/@b0rk/111783285691213015)

follow up question: are there any of these mistakes where you USED to make them but found a trick to avoid making the mistake that worked? what was the trick, and which mistake did it help you avoid?

(as usual, only interested in tricks that you have personally used successfully)

mistakes.md

GitHub Gist: instantly share code, notes, and snippets.

Gist
@b0rk I created a script that backs up all my unstated changes and I aliased git reset--hard to call this script. https://github.com/asmeurer/dotfiles/blob/master/bin/git-backup.sh
dotfiles/bin/git-backup.sh at master · asmeurer/dotfiles

A collection of a bunch of my .files. Contribute to asmeurer/dotfiles development by creating an account on GitHub.

GitHub