Git · Middle · Question 2 of 75

What is the "golden rule" of rebasing?

Explanation

Rebasing replaces commits with new ones. If teammates already have the old ones, their history diverges and they end up with duplicates. Your own unpushed or private branch is fine to rebase.

Further reading

Problem with a question

Git · Middle · question 2

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