- Tim Pope on commit messages
- PR Templates
- Another thing about PR templates
- Intro to CI This covers CD as well which I'm guessing you won't be doing, but toward the end it talks about CI and has some good info.
- Atlassian Guide to PRs
- When to make a commit This guy writes a lot of good things about git as well as writing cleaner code in general.
- A thing I wrote a while back about my preferred git workflow. It might be overkill for your purposes, but it gives you a nice clean git history which is actually super helpful when it comes time to change the code.
Dont use gitflow.
That shit is needlessly complex and will turn your git log into a goddamn nightmare.
Good luck trying to find or fix a problem introduced in one of those long-running branches.
git bisect
won't work, and reverting will be a mess.
- add files with
git add --patch
It is more granular and you're more likely to catch small things that you didn't mean to add. - I don't use many aliases, buit this one is great:
glod='git log --graph --pretty="%Cgreen%h%Creset%Cblue%d%Creset %Cred%an%Creset: %s"'
- tig is a helpful command-line tool for looking at your commits.