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

Re: New way of tracking remote branches -- question

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Jan 6, 2007, 00:16 UTC
Message-ID
<224619.92262.qm@web31810.mail.mud.yahoo.com>
In-Reply-To
<7vzm8xcbcp.fsf@assigned-by-dhcp.cox.net>
--- Junio C Hamano <junkio@cox.net> wrote:
Show 24 quoted lines
> Luben Tuikov <ltuikov@yahoo.com> writes:
> 
> > 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/*

That's exactly what I have, but "git branch" shows only "master". The other branches are indeed in refs/remotes/origin/ but I want them in refs/heads/ so I had to do that manually by creating the head and add this into .git/config.

Old behavior was more _convenient_.
    Luben
Previous: Luben TuikovNext: Junio C Hamano
Message 5 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.