[git-users] Your branch is ahead of origin/master

2010-11-10 Thread David Doria
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 (work

Re: [git-users] Your branch is ahead of origin/master

2010-11-10 Thread Alberto Leal
It means that you have some commits in your branch that weren't pushed to origin. To keep your local branch in sync with origin, you need to push your code to that frequently. git push origin master On Thu, Nov 11, 2010 at 12:05 AM, David Doria wrote: > I don't understand what it means by > "Y

Re: [git-users] Your branch is ahead of origin/master

2010-11-10 Thread David Doria
So how would I undo all of these commits and get my folder back to exactly looking like origin/master? (short of deleting it and re-cloning)? David On Wed, Nov 10, 2010 at 9:11 PM, Alberto Leal wrote: > It means that you have some commits in your branch that weren't pushed to > origin. > To keep

Re: [git-users] Your branch is ahead of origin/master

2010-11-10 Thread Alberto Leal
Are you sure you want to "delete" the changes you have made on you local branch? If so, you can use "git revert": git revert commit But ensure you will do that starting from the top, for instance: commit ac3ffa718484cbefe4202d4a7263573a696917e4 Author: Alberto Leal Date: Wed Nov 10 23:25:05