Git development
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Claudio Scordino <cloud.of.andor@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Port forwarding
Date: Tue, 12 Jun 2007 11:08:10 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.0.98.0706121103230.14121@woody.linux-foundation.org> (raw)
In-Reply-To: <466EBB1B.9060405@gmail.com>



On Tue, 12 Jun 2007, Claudio Scordino wrote:
> 
>    how can I specify the port in git-clone when cloning from a server running
> git-daemon ?

Just doing

	git clone git://hostname:port/repo/path/name

should be fine.

> I need to set port forwarding from a public server to a private server.
> The public server, however, already hosts a git-daemon on port 9418.
> So, I have to use a different port for the forwarding.
> 
> My idea is to let the public server listen on a different port (e.g. 9419) and
> make it redirect all the incoming connections to the port 9418 of the private
> server.

I would argue that it probably makes more sense to make the _private_ 
server listen to another port (fewer people who need to use the :<port> 
syntax). But hey, that's a matter of taste.

> However, I don't know how make git-clone go on a port different than the
> default (9418).

See above. The obvious thing should "just work".

		Linus

  reply	other threads:[~2007-06-12 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12 15:26 Port forwarding Claudio Scordino
2007-06-12 18:08 ` Linus Torvalds [this message]
2007-06-12 18:12 ` Alex Riesen

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=alpine.LFD.0.98.0706121103230.14121@woody.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=cloud.of.andor@gmail.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