Git · Senior · Question 21 of 76
What does git rebase --update-refs help with in stacked branches?
- 1Updates the remote branches without a separate push
- 2Refreshes the tags that point into the rebased range
- ✓Correct answer: Moves dependent branch pointers along with the rebased commits
Explanation
With PR #2 based on PR #1, rebasing the top branch also moves branch #1 to its rewritten commits, so the whole stack stays consistent.