I often use git rebase -i HEAD~N to squash/fixup all my interm commits, or the one I just did, into the former before pushing upstream.
I learned about git commit --fixup HEAD which helps me avoid a number of keystrokes.
The issue is it adds "fixup!" to the previous commit message, any way to make it stop doing that?
If you just want to add the current staged changes to the last commit you probably should use
git commit --amend --no-edit
with the --no-edit git does not prompt for a new commit message.
As @phd said, fixup is ment to be used with rebase -i --autosquash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With