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

Re: git-branch and git-remotes confusion

From
Jeff King <peff@peff.net>
Date
Apr 10, 2007, 12:25 UTC
Message-ID
<20070410122516.GA27388@coredump.intra.peff.net>
In-Reply-To
<46a038f90704100505i7bdd88a8q52186f7ce7ff0cdf@mail.gmail.com>
On Wed, Apr 11, 2007 at 12:05:17AM +1200, Martin Langhoff wrote:
>   git-clone http://git.catalyst.net.nz/git/moodle-r2.git
>   git-branch --track origin/mdl18-olpc my18-olpc
Your arguments to git-branch are backwards. It should be:
  git-branch --track my18-olpc origin/mdl18-olpc

Also note that --track didn't show up until 1.5.1. Other than that, it should do what you expect (check out your .git/config before and after to see the impact of --track).

-Peff
Previous: Martin LanghoffNext: Martin Langhoff
Message 2 of 3 in “git-branch and git-remotes confusion”
  1. Martin LanghoffApr 10, 2007
  2. Jeff KingApr 10, 2007
  3. Martin LanghoffApr 10, 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.