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

Re: New way of tracking remote branches -- question

From
Junio C Hamano <junkio@cox.net>
Date
Jan 5, 2007, 23:17 UTC
Message-ID
<7vzm8xcbcp.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<776323.21089.qm@web31808.mail.mud.yahoo.com>
Luben Tuikov <ltuikov@yahoo.com> writes:
Show 6 quoted lines
> I can see that the remote heads are where they are supposed to be
> but no local tracking heads are created (by default).  I had
> to do this manually.
>
> Old behavior was that git did that for you automatically.
> So I suppose this is another newbie protection.

A very fuzzily stated question which is hard to answer, but I do not think it is another newbie protection, if it apparently is actively hurting you. Also the documentation may need to be updated to teach you enough about how to achieve what you want.

You can see where remote heads are by doing what? ls-remote? "Old behaviour" for what configuration?

A fresh clone made with a recent version sets things up to track all remote branches from the repository you cloned from under remotes/origin/, and it even tracks new ones as they are added at the remote, so you probably are doing something different from the default configuration that has:

    remotes.origin.fetch = +refs/heads/*:refs/remotes/origin/*
Previous: Luben TuikovNext: Junio C Hamano
Message 2 of 13 in “New way of tracking remote branches -- question”
  1. Luben TuikovJan 5, 2007
  2. Junio C HamanoJan 5, 2007
  3. Junio C HamanoJan 5, 2007
  4. Luben TuikovJan 6, 2007
  5. Luben TuikovJan 6, 2007
  6. Junio C HamanoJan 5, 2007
  7. Junio C HamanoJan 6, 2007
  8. Steven GrimmJan 6, 2007
  9. Theodore TsoJan 6, 2007
  10. Luben TuikovJan 9, 2007
  11. Junio C HamanoJan 9, 2007
  12. Luben TuikovJan 9, 2007
  13. Martin LanghoffJan 9, 2007

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.