Re: Pushing to a remote repo from a remote repo?

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


Brian Cardarella <brian@xxxxxxxxxxxx> writes:

> So I have a destination repo that is remote. And I have a source repo
> that is also remote. I would like my local machine to act as a proxy
> to allow me to push to the destination from the source without ever
> download the repo to my machine. Is this possible?

First, you can set up either SSH tunnel (for SSH transport), or HTTP
proxy (`http_proxy`[1] environment variable or `http.proxy` config
variable[2] for HTTP transport, both smart and dumb), or git proxy
(`core.gitproxy`, e.g. netcat or ssh, for git:// protocol)

Second, you can configure repository using hooks so that pushing to
said intermediate repository would push to destination repository.  In
this solution you would have repository on disk on intermediate
machine, but you can avoid manual transfer to and from intermediate
machine.

[1] curl(1) manpage, the "Environment" section
[2] git-config(1) manpage

HTH
-- 
Jakub Narebski

--
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


[Newbies FAQ]     [Linux Kernel Development]     [Free Online Dating]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Free Online Dating]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]     [Linux Resources]

Add to Google