Keep Your Branch Updated with Rebase
Description
Your feature branch was created yesterday. Today, main has several new commits. Use rebase to build your feature on top of the latest main, keeping a clean linear history.
Theory Questions
1. What does 'git rebase main' do when you're on a feature branch?
2. Why do many teams prefer rebase over merge for updating feature branches?
3. After rebasing a branch that's already been pushed, what must you do to update the remote?