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

Re: git-branch and git-remotes confusion

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Apr 10, 2007, 12:33 UTC
Message-ID
<46a038f90704100533l7d795e79vd6245445c7e74c67@mail.gmail.com>
In-Reply-To
<20070410122516.GA27388@coredump.intra.peff.net>
On 4/11/07, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> 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).

thanks. And I'm reading the doco for 1.5.latest and it turns out I'm using 1.5.0.5 so that won't work either.

hmmm. actually, I'm having another problem that is a bit more serious: cloning via http doesn't create a remotes/origin and doesn't perform the initial checkout.

will post separately about this...
martin
Previous: Jeff King
Message 3 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.