Complete the command to start rebasing the current branch onto main.
git rebase [1]The command git rebase main moves your current branch changes on top of the latest main branch commits, creating a linear history.
Complete the command to abort a rebase in progress.
git rebase --[1]The command git rebase --abort stops the rebase process and returns the branch to its original state before rebasing.
Fix the error in the command to rebase interactively.
git rebase -[1] mainThe -i flag starts an interactive rebase, letting you edit commits before applying them.
Fill both blanks to create a linear history by rebasing and then pushing with force.
git rebase [1] && git push origin [2] --force
First, you rebase your feature-branch onto main to create a linear history. Then you force push the rebased branch to update the remote.
Fill all three blanks to create a linear history dictionary comprehension filtering commits by author.
commits = { [1]: [2] for [3] in commit_list if [3].author == 'Alice' }This dictionary comprehension creates a mapping from commit hashes to their messages, but only for commits authored by Alice, showing a filtered linear history.