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 change the commit message of a commit during rebase.
In the rebase todo list, replace 'pick' with '[1]' to edit the commit message.
Replacing 'pick' with 'edit' allows you to stop at that commit and change its message.
Fix the error in the command to continue rebase after editing a commit message.
After editing the commit message, run 'git [1] --continue' to proceed.
The correct command is git rebase --continue to proceed after editing a commit.
Fill both blanks to create a dictionary comprehension that maps commit hashes to their messages, filtering commits with messages containing 'fix'.
{commit.[1]: commit.[2] for commit in commits if 'fix' in commit.message}Use commit.hexsha for commit hash and commit.message for the commit message.
Fill all three blanks to write a git command that amends the last commit with a new message without changing the commit content.
git commit --amend -m "[1]" && git [2] origin [3]
The command amends the last commit message and pushes the updated commit to the remote branch HEAD.