Skip to content

.tip

· one of the small things

commit --fixup and rebase --autosquash

A reviewer asks for a change to commit three of seven. Make it, commit it as a fixup of that commit, and let the rebase fold it in.

git commit --fixup a1b2c3d
git rebase -i --autosquash main

The branch history stays readable, and the reviewer sees the fix where it belongs and not as an eighth commit called "address review".

git