git rebase -i <commit>
to perform an interactive rebase.--autosquash
option to automatically squash fixup commits.git rebase --continue
or abort it using git rebase --abort
.git rebase -i [--autosquash] <commit>
git rebase -i 3050fc0de # Performs an interactive rebase starting from `3050fc0de` git rebase -i --autosquash HEAD~5 # Performs an interactive rebase of the last 5 commits, # automatically squashing fixup commits
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️