by kazinator · 9y ago · 0 comments
git commit --squash <sha>
git commit --fixup <sha>
git rebase -i --autosquash ...
Autosquash puts things in the right order.Of course, you have to pick the target commit at the fixup commit time. But that is less error-prone then later trying to remember what such and such commit was intended to combine with.
That being said, my tool will work nicely with autosquash. All 'fixup!' commits will be reordered and prefixed with fixup just like with the default editor. So you might say that you don't need my tool since autosquash is all you need, but I often use it to do manual reordering, editing and rewording. And in those cases I find it very useful.