3 ms·
You can simplify this: git commit --fixup X ; git rebase --interactive --autostash --autosquash X^ If you do that often, an alias might help; I have one for t
by Aissen 2y ago
You can simplify this:
git commit --fixup X ; git rebase --interactive --autostash --autosquash X^
If you do that often, an alias might help; I have one for the second command above. You might want to look at git-fixup or git-absorb for automatically finding the "X" commit.
Aside: I really ought to try jj, it looks very promising.
- steveklabnik 2y agojj has jj absorb already.
- Aissen 2y agoI heard it worked even better than git-absorb, is that true?
- steveklabnik 2y agoI have not used either, so I cannot answer that.