4 ms·
The author of this is not making use of git commit --squash <sha> git commit --fixup <sha> git rebase -i --autosquash ... Autosquash puts things in the
by kazinator 10y ago
The author of this is not making use of
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.
- ollysb 10y agoSaw this just last week $ git config --global rebase.autosquash true
- kazinator 10y agoHow long has that been a feature, darn!
- sjurba 10y agoWell, autosquash is great, and you are right that I don't really make use of it much, but I will now that I'm aware of how nice it is. 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.