From: Jeff King <peff@peff.net>
To: Brian Cardarella <brian@dockyard.com>
Cc: "Carlos Martín Nieto" <cmn@elego.de>, git@vger.kernel.org
Subject: Re: Pushing to a remote repo from a remote repo?
Date: Mon, 16 Apr 2012 10:47:26 -0400 [thread overview]
Message-ID: <20120416144726.GA13688@sigill.intra.peff.net> (raw)
In-Reply-To: <CAAnwhhXPs0+GPExMu8TP0jbctMamg6FZW2ndcQMJbtqGetfyZw@mail.gmail.com>
On Sat, Apr 14, 2012 at 07:16:36PM -0400, Brian Cardarella wrote:
> Yes, I assumed the bits need to come through my system. I want to
> avoid cloning, pushing, then removing the repo. But it seems that is
> not possible. Thank you.
This isn't really a git problem, but rather a network proxying problem.
You could solve it with netcat and ssh like:
# forward port 5001 on our local box to ssh on the "source" box
nc -lp 5001 -c 'nc $source 22' &
# forward port 5001 on the destination box to our local forward,
# and then start the clone
ssh -R 5001:localhost:5001 $dest \
'git clone ssh://localhost:5001/path/to/repo'
If the repository is accessible by http, then you can easily tweak it to
forward to port 80. If, for some reason, you prefer push rather than
fetch, you can create the tunnels in the reverse direction.
-Peff
next prev parent reply other threads:[~2012-04-16 14:47 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 [this message]
2012-04-15 10:09 ` Jakub Narebski
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=20120416144726.GA13688@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=brian@dockyard.com \
--cc=cmn@elego.de \
--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).