Re: Branch "ahead of tracked remote branch"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 24 Apr 2008, Bill Lear wrote:

> I had some work in master, I decided to move to a branch to complete,
> so:
> 
> % git checkout -b branch
> % git commit -a -m "Insightful message"
> 
> Then, I decided this was not such a good idea, so I did a git reset
> --soft HEAD^, then git reset HEAD for each file I committed, thinking
> that this was a complete "undo".  I then switched to branch master
> and got this:
> 
> Switched to branch "master"
> Your branch is ahead of the tracked remote branch 'origin/master' by 1 commit.
> 
> I'm not sure this is accurate.  Does this seem correct?

It's certainly possible. It looks like you committed once on your own 
master branch before you did any of the things mentioned in this message. 
Then you created a new branch, made a commit on it, undid the commit, and 
switched back to "master". "git log origin/master..master" will show you 
the 1 commit that you have on master.

	-Daniel
*This .sig left intentionally blank*
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux