Git · Junior · Question 64 of 75

What does "Your branch is ahead of 'origin/main' by 2 commits" mean?

Explanation

Compared with your last fetch, your branch has 2 extra commits. "Behind" means the opposite; "diverged" means both have commits the other lacks.

Further reading

Problem with a question

Git · Junior · question 64

Test yourself

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

Take this quiz