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

Re: Fetch from remote A, push to remote B

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Jun 1, 2007, 03:51 UTC
Message-ID
<46a038f90705312051l663bc522r9c5c51bc803c2bc8@mail.gmail.com>
In-Reply-To
<46a038f90705311852n136a2bfbwa943a65a43257a6e@mail.gmail.com>
To finish off the soliloquy... effective mirroring with git
  git-clone --bare git://host/repo.git mirror.git
  git --git-dir=mirror.git config remote.origin.url git://host/repo.git
  git --git-dir=mirror.git config remote.origin.fetch
'+refs/heads/*:refs/heads/*'
  and now, on cron...
  git --git-dir=mirror.git fetch -u
  git --git-dir=mirror.git remote prune origin
(Thanks to Shawn Pearce for helping me figure out why it wasn't working for me!)
cheers
martin
Previous: Martin Langhoff
Message 5 of 5 in “Fetch from remote A, push to remote B”
  1. Martin LanghoffMay 31, 2007
  2. Martin LanghoffMay 31, 2007
  3. Martin LanghoffJun 1, 2007
  4. Martin LanghoffJun 1, 2007
  5. Martin LanghoffJun 1, 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.