Complete the command to start rebasing the current branch onto the master branch.
git rebase [1]The command git rebase master rebases the current branch onto the master branch, replaying commits on top of master.
Complete the command to abort an ongoing rebase process.
git rebase --[1]The command git rebase --abort stops the rebase and returns the branch to its original state before the rebase started.
Fix the error in the command to rebase interactively starting from the last 3 commits.
git rebase -i HEAD~[1]The command git rebase -i HEAD~3 opens an interactive rebase for the last 3 commits, allowing you to edit, reorder, or squash them.
Fill both blanks to create a new branch and rebase it onto master.
git checkout -b [1] && git rebase [2]
This sequence creates a new branch called feature and rebases it onto master, updating the feature branch with the latest master changes.
Fill all three blanks to squash the last two commits into one during an interactive rebase.
git rebase -i HEAD~[1] # change 'pick' to [2] for the second commit and save the [3] file
To squash the last two commits, you start an interactive rebase with HEAD~2, change the second commit's action from 'pick' to 'squash', and save the changes in the editor.