I had two branches that looked like this:
X--X [origin/master, master]
.../
\
----X--X--X--X--X--X [origin/x, x]
then I merged x into master so now I have this:
[origin/master]
X--X------------------X [master]
.../ /
\ /
----X--X--X--X--X--X [origin/x, x]
Now when I git status I get:
On branch master
Your branch is ahead of 'origin/master' by 7 commits.
(use "git push" ...)
...
Why is it 7 commits? From the picture (which I drew looking at git log --graph) it seems it should be ahead by 1 commit. Other 6 commits are for branch x.