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

Re: Missing branches after clone

From
Philip Oakley <philipoakley@iee.org>
Date
May 15, 2019, 07:13 UTC
Message-ID
<a05fb45a-69d7-a12b-e76c-f11e985f4a65@iee.org>
In-Reply-To
<xmqq5zqc8ozn.fsf@gitster-ct.c.googlers.com>
On 15/05/2019 02:50, Junio C Hamano wrote:
Show 9 quoted lines
> Philip Oakley <philipoakley@iee.org> writes:
>
>> It is a 'branch which tracks a remote', and it is has the 'last time I
>> looked' state of the branch that is on the remote server, which may
>> have, by now, advanced or changed.
> Yup, I thought we long time ago decided to discourage use of "remote
> branch(es)" in our documentation to help unconfuse users and stick
> to the term "a remote-tracking branch" (the "remote-tracking" is a
> hyphenated one word)?

I believe we are consistent in using the 'rtb' phrase (I've not checked the hyphen), but for those uninitiated in the duplicitous ways of distributed versioning systems, they can still think that the phrase is simply saying that local branch A will be updated to the state of remote branch B when do a fetch from that remote.

I.e. they think tracking is a direct linkage via fetch, rather than an indirect linkage via a local rtb (a concept that has not yet entered their head, and if if they are aware of the possibility, they haven't joined the dots). Hence my spelling it out the 'French' way.

Show 7 quoted lines
>> So you need to have the three distinct views in your head of 'My
>> branch, held locally', 'my copy of Their branch, from when I last
>> looked', and 'Their branch, on a remote server, in a state I haven't
>> seen recently'.
> Yup.  FWIW, when I need to refer to the last one, I'd always say "a
> branch at the remote" to avoid the confusing term "remote branch".
>

yes, it's tricky. I've shot my foot off a number of times. Thanks Philip

Previous: Junio C Hamano
Message 13 of 13 in “Missing branches after clone”
  1. Ulrich WindlMay 14, 2019
  2. Duy NguyenMay 14, 2019
  3. Philip OakleyMay 14, 2019
  4. Duy NguyenMay 14, 2019
  5. Philip OakleyMay 14, 2019
  6. Duy NguyenMay 18, 2019
  7. Philip OakleyMay 19, 2019
  8. Antw: Re: Missing branches after cloneUlrich Windl, May 14, 2019
  9. Philip OakleyMay 15, 2019
  10. Ulrich WindlMay 15, 2019
  11. Philip OakleyMay 15, 2019
  12. Junio C HamanoMay 15, 2019
  13. Philip OakleyMay 15, 2019

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.