Re: Fetch from remote A, push to remote B

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux