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:39 UTC
Message-ID
<7vmz4xcacr.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vzm8xcbcp.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 13 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.

Can you state the problem you observed about the recent git in a way that is easier to debug?

For example, you could state:
	With older git (I verified that v1.3.0 still works like
	this), I used to be able to just say:
		$ git fetch
	(this is the exact command line -- I am not giving a URL
	nor even "origin" after "git fetch").  When the upstream
	created a new branch 'blah', the above command created a
	new local branch 'blah' automatically for me.  With the
	tip of 'master' (e27e609), this does not happen anymore.
	My configuration is that I have .git/remotes/origin file
	whose contents is ....  I do not have any remote.*.url,
	remote.*.fetch, nor branch.*.remote configuration variables.
to be more helpful.

I am not dismissing your message as whining. You probably have hit a regression while we adopted the BCP to encourage separate remote layout, and I would like to understand the issue.

Previous: Junio C HamanoNext: Luben Tuikov
Message 3 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.