some confusion on git pull vs git-fetch

Viewed 1191

So - can someone clarify this one:

I run:

git pull origin master  
git status

And it then pulls the changes and says:

your branch is ahead of origin/master ... blahblah by 6 commits...

When I then run

git fetch
git status

It says:

# On branch master
nothing to commit (working directory clean)

So - I thought git pull does git fetch by default - so why does it says "ahead by 6 commits" without additional git fetch?

1 Answers
Related