@alexgrover
learned about this useful git feature today - if you want to amend a commit that's not the latest one:
git commit --fixup head^ # or another ref
git rebase --autosquash head^^
and git will automatically reorder and squash the commits for you
https://blog.gitbutler.com/git-autosquash/