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

Re: merge two local mirrors with detached heads and similar remotes

From
ZHZenaan Harkness <zen@freedbms.net>
Date
Nov 7, 2010, 09:42 UTC
Message-ID
<AANLkTin5GOGO3sf7kTjOz8X-rfiFTW6rTD5cO6w4p2yA@mail.gmail.com>
In-Reply-To
<AANLkTi=JmpXEiEe-7-ZicUp-QosWjTZQgK77-f=9iAtL@mail.gmail.com>
Show 17 quoted lines
> In A) I modified .git/config to be as follows:
> $ cat .git/config
> [core]
>        repositoryformatversion = 0
>        filemode = true
>        bare = false
>        logallrefupdates = true
> [remote "origin"]
>        fetch = +refs/heads/*:refs/remotes/origin/*
>        url = https://github.com/chad/gitjour.git
> [branch "master"]
>        remote = origin
>        merge = refs/heads/master
> [remote "lach"]
>        url = ../u
> #       fetch = +refs/heads/*:refs/remotes/origin/*
>        fetch = +refs/remotes/origin/*:refs/remotes/lach/*
My final change, for reference, was updating [remote "latch"] section with:
   url = https://github.com/lachlanhardy/gitjour.git
   fetch = +refs/heads/*:refs/remotes/lach/*

Appears to work with git fetch --all and finally followed by git gc

Previous: Zenaan HarknessNext: Jakub Narebski
Message 3 of 4 in “merge two local mirrors with detached heads and similar remotes”
  1. Zenaan HarknessNov 7, 2010
  2. Zenaan HarknessNov 7, 2010
  3. Zenaan HarknessNov 7, 2010
  4. Jakub NarebskiNov 7, 2010

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.