Hi David,

I think there's something amiss here.

Theoretically, after that reset --hard origin/master, your branch
should not be ahead any more. I just tried this here and it works as
expected:

tfn...@t:~/git-repos/one-repo-clone/>git status
# On branch master
# Your branch is ahead of 'origin/master' by 7 commits.
#
nothing to commit (working directory clean)
tfn...@t:~/git-repos/one-repo-clone/>git reset --hard origin/master
HEAD is now at b061d63 Committing something at Thu Nov 11 11:23:44 CET
2010
tfn...@t:~/git-repos/one-repo-clone/>git status
# On branch master
nothing to commit (working directory clean)
tfn...@t:~/git-repos/one-repo-clone/>

What version of git are you using?


On Nov 11, 3:05 am, David Doria <daviddo...@gmail.com> wrote:
> I don't understand what it means by
> "Your branch is ahead of origin/master"
>
> Even if I do a
> git reset --hard origin/master
> git pull origin master
>
> git tells me:
>
> [dor...@localhost ITK]$ git status
> # On branch master
> # Your branch is ahead of 'origin/master' by 145 commits.
> #
> nothing to commit (working directory clean)
>
> How can that be? Shouldn't it be exactly equal to origin/master now?
>
> Thanks,
>
> David

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to