Re: Newbie grief

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

 



Hi Rich,

On 05/01/2012 12:30 AM, Rich Pixley wrote:
> I'm trying to do what seems like a simple thing in darcs, monotone,
> mecurial, gnu arch, etc, but seems nearly impossible in git.  There's a
> central repository, a long ways away on the other side of the internet. 
> So I want a local repository cache.  I'm going to be working on a number
> of different features and different machines all simultaneously so I
> really don't want them all to be pulling from the central repository.
> 
> In other systems, this is a simple star network.  Clone a repository,
> use, push, pull, etc.  But with git, I can't push unless the cache
> repository is bare, but if the cache repository is bare, then a change
> to the central repository will cause the two to become wedged since
> neither can push or fetch the other.

If the 'cache repository' is set up using "git clone --mirror" and you
push to the primary repository only, that makes the cache repo a
definite slave, so you can always run "git fetch" on it without any
trouble. You can even enforce this by denying all pushes to the cache
repo, thus eliminating any chance of accidental misuse.

Conveniently, git allows you to specify a different URL for fetch and
push in your local working repositories.

HTH,
Jan
--
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]