Complete the command to start an interactive rebase for the last 3 commits.
git rebase -i HEAD~[1]The command git rebase -i HEAD~3 starts an interactive rebase for the last 3 commits.
Complete the command to edit a commit message during an interactive rebase.
In the interactive rebase editor, replace 'pick' with '[1]' to edit a commit message.
Replacing 'pick' with 'edit' allows you to pause the rebase and change the commit message or content.
Fix the error in the command to continue the rebase after editing a commit.
After editing a commit, run 'git [1] --continue' to proceed.
The correct command is git rebase --continue to resume the rebase process after resolving conflicts or editing commits.
Fill both blanks to squash the second commit into the first during interactive rebase.
In the interactive rebase editor, change the second commit's action from '[1]' to '[2]'.
To combine commits, keep the first as 'pick' and change the second to 'squash'. This merges the second commit into the first.
Fill all three blanks to reorder commits during an interactive rebase.
In the editor, move the commit lines so that the commit with message '[1]' comes before '[2]', then save and exit with '[3]'.
To reorder commits, move the line with 'add feature' before 'fix typo' in the editor, then save and exit with ':wq'.