# Branch "ahead of tracked remote branch"

3 messages from 2008-04-25 to 2008-04-25. Participants: Bill Lear, Daniel Barkalow.
Thread: https://gitlist.dev/t/13250

## Bill Lear, 2008-04-25 02:03

Subject: Branch "ahead of tracked remote branch"
Message-ID: <18449.15334.88706.45152@lisa.zopyra.com>
URL: https://gitlist.dev/e/18449.15334.88706.45152%40lisa.zopyra.com

```
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?


Bill

```

## Daniel Barkalow, 2008-04-25 03:59

Subject: Re: Branch "ahead of tracked remote branch"
Message-ID: <alpine.LNX.1.00.0804242349460.19665@iabervon.org>
URL: https://gitlist.dev/e/alpine.LNX.1.00.0804242349460.19665%40iabervon.org
In-Reply-To: <18449.15334.88706.45152@lisa.zopyra.com>

```
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*

```

## Bill Lear, 2008-04-25 16:39

Subject: Re: Branch "ahead of tracked remote branch"
Message-ID: <18450.2380.655635.387709@lisa.zopyra.com>
URL: https://gitlist.dev/e/18450.2380.655635.387709%40lisa.zopyra.com
In-Reply-To: <alpine.LNX.1.00.0804242349460.19665@iabervon.org>

```
On Thursday, April 24, 2008 at 23:59:44 (-0400) Daniel Barkalow writes:
>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.

Ah, ok, now I think I understand --- if I do a fetch (or pull) on
master, switch over to the other branch, and then back, I see no such
message.  Thanks.


Bill

```
