git rebase -i master new_feature
-i will trigger the interactive mode.
-i
Can be used just to edit the commit history
git rebase -i HEAD~3
Interative rebase will open git-rebase-todo for you to edit what to do.
git-rebase-todo
Options:
pick - use
pick
drop
reword - change the commit message
reword
edit - to amend changes along with the commit
edit
squash
fixup
exec
Last updated 2 years ago