Git · Middle · Question 64 of 75

What is the safest way to bring the latest main into a branch that others also push to?

Explanation

Merge doesn't rewrite existing commits, so collaborators can keep pulling normally. Rebase is great for private branches, not shared ones.

Further reading

Problem with a question

Git · Middle · question 64

Test yourself

Take the Git · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz