Thread (5 messages) flat view 5 messages, 1 author, 2016-06-15

Re: Fetch from remote A, push to remote B

From: Martin Langhoff <hidden>
Date: 2016-06-15 22:43:13

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help