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

Re: git-branch, older repos and more confusion

From
Jeff King <peff@peff.net>
Date
Apr 12, 2007, 06:22 UTC
Message-ID
<20070412062200.GA31788@coredump.intra.peff.net>
In-Reply-To
<46a038f90704112316v4aaa6246s9e07a3af8262b119@mail.gmail.com>
On Thu, Apr 12, 2007 at 06:16:20PM +1200, Martin Langhoff wrote:
Show 6 quoted lines
> And I think I got it sussed out with:
> 
>   git-clone <repo> mydir
>   cd mydir
>   git-push origin origin/v1.9-maint:refs/heads/v1.9-clientname
>   git-checkout --track -b v1.9-clientname origin/v1.9-clientname

OK, I had misunderstood what you wanted. Yes, that should work, though I think you will need to do a 'git-fetch' between your push and checkout.

> And then git-pull / git-push will "do the right thing". And `git-pull
> origin/v1.9-maint` will trigger a fetch & merge.

Actually, it should be "git-pull origin v1.9-maint". Of course, you've been fetching origin/v1.9-maint all along when you pull your other branch, so you can do it without touching the network at all: "git-merge origin/v1.9-maint".

-Peff
Previous: Martin Langhoff
Message 9 of 9 in “git-branch, older repos and more confusion”
  1. Martin LanghoffApr 12, 2007
  2. Jeff KingApr 12, 2007
  3. Sam VilainApr 12, 2007
  4. Martin LanghoffApr 12, 2007
  5. Martin LanghoffApr 12, 2007
  6. Jeff KingApr 12, 2007
  7. Martin LanghoffApr 12, 2007
  8. Martin LanghoffApr 12, 2007
  9. Jeff KingApr 12, 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.