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

Re: [RFC] git-clone: add --track <headname> support

From
Junio C Hamano <junkio@cox.net>
Date
Apr 13, 2007, 00:28 UTC
Message-ID
<7v3b35i0db.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<461EC5DC.6060903@catalyst.net.nz>
Martin Langhoff <martin@catalyst.net.nz> writes:
Show 5 quoted lines
> If your tree is reasonably clean (so that the implied git-checkout won't
> fail), then on 1.5.1 this Just Works
>
>         git branch --track <branch> origin/<branch>
>         git pull # as needed

At least in theory, with branch.autosetupmerge, you shouldn't even have to say --track there. I've never used it myself, though.

Previous: Martin LanghoffNext: Junio C Hamano
Message 8 of 9 in “[RFC] git-clone: add --track <headname> support”
  1. Martin LanghoffApr 12, 2007
  2. Junio C HamanoApr 12, 2007
  3. Martin LanghoffApr 12, 2007
  4. Carl WorthApr 12, 2007
  5. Martin LanghoffApr 12, 2007
  6. Carl WorthApr 12, 2007
  7. Martin LanghoffApr 12, 2007
  8. Junio C HamanoApr 13, 2007
  9. Junio C HamanoApr 13, 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.