Git · Junior · Question 64 of 75
What does "Your branch is ahead of 'origin/main' by 2 commits" mean?
- 1The remote has 2 commits that you don't have
- 22 commits failed to push and need to be redone
- ✓Correct answer: You have 2 local commits that aren't pushed yet
Explanation
Compared with your last fetch, your branch has 2 extra commits. "Behind" means the opposite; "diverged" means both have commits the other lacks.