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

Re: Where/how to create tracking branches?

From
Junio C Hamano <junkio@cox.net>
Date
Feb 19, 2007, 21:09 UTC
Message-ID
<7v1wkl7t3b.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<17882.1230.704770.12880@lisa.zopyra.com>
Bill Lear <rael@zopyra.com> writes:
Show 12 quoted lines
> On Monday, February 19, 2007 at 11:43:36 (-0800) Junio C Hamano writes:
>>...
>>Assuming your clone was initially made from /public/repo/project,
>>doesn't "git fetch" without _any_ parameter work?
>>
>>	$ git fetch
>
> Short answer: yes, it does.  I had assumed I needed to create the
> tracking branch somehow since I created the topic branch in the first
> place in my private repo.  More detailed confirmation follows, but
> thank you for pointing out that git is in fact smarter than I gave
> it credit.

Tracking new branches on the remote side after you create a clone is one of the few things 1.5.0 does much better than 1.4.4 series, and it was done in response to comments from real world users like yourself, so rather than giving git too much credit, I think you should take it yourself ;-).

Previous: Bill Lear
Message 4 of 4 in “Where/how to create tracking branches?”
  1. Bill LearFeb 19, 2007
  2. Junio C HamanoFeb 19, 2007
  3. Bill LearFeb 19, 2007
  4. Junio C HamanoFeb 19, 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.