git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Aw: Re: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 6, 2014, 17:12 UTC
Message-ID
<xmqqlhytjapb.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1067660482.1596252.1389024023072.JavaMail.ngmail@webmail11.arcor-online.net>
Thomas Ackermann <th.acker@arcor.de> writes:
Show 25 quoted lines
>  
>> > But for the simple use case where you only have a master
>> > branch I consider it not really helpful and - at least for me -
>> > misleading.
>> 
>> I see what you mean, and you're not the only one.
>> 
>> Git follows a rule of "never contact another machine unless explicitly
>> asked to using a command such as 'git pull' or 'git fetch'".  To
>> support this, it makes a distinction between (1) the remote-tracking
>> ref origin/master and (2) the actual branch "master" in the remote
>> repository.  The former is what is updated by 'git fetch', and the
>> latter is something git does not know about without talking to the
>> remote server.
>> 
>> What documentation did you use when first starting to learn git?
>> Perhaps it can be fixed to emphasize the distinction between (1) and
>> (2) earlier.
>
> I think it's not the problem of the documentation but of myself
> not having it read thorough enough ;-)
>
> (This new feature in V1.8.5 of course is not documented in any of the books
> up to now but in the future could be used to explain the above mentioned
> rule.)

By the way, this is nothing new in 1.8.5; we didn't bother saying up-to-date before, so you may not have noticed, but its silence was already telling you that your branch was up-to-date with respect to what you are building on top of.

Show 5 quoted lines
>
> Thanks to you, Bryan and Jiang for your help!
>
> ---
> Thomas
Previous: Thomas AckermannNext: Keshav Kini
Message 6 of 8 in “Aw: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"”
  1. Thomas AckermannJan 6, 2014
  2. Bryan TurnerJan 6, 2014
  3. Aw: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"Thomas Ackermann, Jan 6, 2014
  4. Jonathan NiederJan 6, 2014
  5. Aw: Re: Re: Re: [Bug report] 'git status' always says "Your branch is up-to-date with 'origin/master'"Thomas Ackermann, Jan 6, 2014
  6. Junio C HamanoJan 6, 2014
  7. Keshav KiniJan 14, 2014
  8. Jiang XinJan 6, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.