Complete the command to start an interactive rebase of the last 3 commits.
git rebase -i HEAD~[1]The command git rebase -i HEAD~3 starts an interactive rebase of the last 3 commits.
Complete the sentence: You should never rebase commits that have been {{BLANK_1}}.
You should never rebase commits that have been [1].Rebasing commits that have been pushed to a shared repository can cause problems for others.
Fix the error in the command to rebase the current branch onto main.
git rebase [1]The command git rebase main rebases the current branch onto the local main branch.
Fill both blanks to complete the advice: Never rebase {{BLANK_1}} branches that have been {{BLANK_2}} to a shared repository.
Never rebase [1] branches that have been [2] to a shared repository.
Public branches that have been pushed should never be rebased to avoid conflicts for others.
Fill all three blanks to complete the command that safely updates your feature branch with main without rebasing public commits.
git checkout [1] && git fetch origin && git merge origin/[2] && git push origin [3]
This sequence updates your local feature branch with the latest main branch changes by merging, avoiding rebasing public commits.