re: A closer look at git rebase VIEW POST

FULL DISCUSSION
 

You can also use git commit --fixup <hash> to prepare a fixup (or squash using --squash). They will be added on top of your branch so you still have to do a rebase using git rebase -i --autosquash to do the fixup or squash. I use this a lot to quickly fix PR review comments or mistakes I made along the way.

 


git commit --amend --no-edit

is also useful in such cases, which simply adds your changes to previous commit,


 tells git to leave previous commit message
 

Yup, but that only goes for the last commit whereas a fixup can blend into any commit after a rebase.

Really neat, I didn't understand initially what it is

code of conduct - report abuse