[git-users] Your branch is ahead of origin/master
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.
Re: [git-users] Your branch is ahead of origin/master
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 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.comgit-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/git-users?hl=en. -- Alberto Leal http://www.albertoleal.eti.br -- 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.
Re: [git-users] Your branch is ahead of origin/master
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 albert...@gmail.com wrote: 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 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. -- Alberto Leal http://www.albertoleal.eti.br -- 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. -- 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.