From: Jakub Narebski <jnareb@gmail.com>
To: Brian Cardarella <brian@dockyard.com>
Cc: git@vger.kernel.org
Subject: Re: Pushing to a remote repo from a remote repo?
Date: Sun, 15 Apr 2012 03:09:55 -0700 (PDT) [thread overview]
Message-ID: <m3lilx9uhf.fsf@localhost.localdomain> (raw)
In-Reply-To: <CAAnwhhWTcfOi+qqXPnGNXSKHbFh5L=+6eSKaaex5mq6VTwSxEw@mail.gmail.com>
Brian Cardarella <brian@dockyard.com> 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
prev parent reply other threads:[~2012-04-15 10:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-14 22:08 Pushing to a remote repo from a remote repo? Brian Cardarella
2012-04-14 23:02 ` Carlos Martín Nieto
2012-04-14 23:16 ` Brian Cardarella
2012-04-16 14:47 ` Jeff King
2012-04-15 10:09 ` Jakub Narebski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3lilx9uhf.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=brian@dockyard.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).