Git · Middle · Question 64 of 75
What is the safest way to bring the latest main into a branch that others also push to?
- 1Delete it and recreate it from
main - 2Rebase it on
mainand force-push - ✓Correct answer: Merge
maininto it instead of rebasing
Explanation
Merge doesn't rewrite existing commits, so collaborators can keep pulling normally. Rebase is great for private branches, not shared ones.