git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* msysgit with git protocol to linux server
@ 2012-05-18 19:55 Neal Kreitzinger
  2012-05-18 23:57 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Neal Kreitzinger @ 2012-05-18 19:55 UTC (permalink / raw)
  To: git

If my pc is on the same vpn as the linux server can I use git protocol 
instead of ssh for better speed?

I have instructions on how to setup msysgit with ssh.  (I'm new to 
msysgit and ssh.)  On the linux servers we've been using git protocol 
since they are on the same vpn.  My understanding is that git protocol 
is faster than ssh.

v/r,
neal

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: msysgit with git protocol to linux server
  2012-05-18 19:55 msysgit with git protocol to linux server Neal Kreitzinger
@ 2012-05-18 23:57 ` Jeff King
  2012-05-19  8:14   ` Johannes Sixt
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2012-05-18 23:57 UTC (permalink / raw)
  To: Neal Kreitzinger; +Cc: git

On Fri, May 18, 2012 at 02:55:13PM -0500, Neal Kreitzinger wrote:

> If my pc is on the same vpn as the linux server can I use git
> protocol instead of ssh for better speed?

Yes, you can, but no, it will probably not be faster.

> I have instructions on how to setup msysgit with ssh.  (I'm new to
> msysgit and ssh.)  On the linux servers we've been using git protocol
> since they are on the same vpn.  My understanding is that git
> protocol is faster than ssh.

It's exactly the same protocol. The only reason it would be faster is
if your machine is so slow that the encryption overhead of ssh is a
bottleneck.

Note that git-over-http can be slightly slower than the regular git
protocol, because there may be more round-trip latency during the commit
negotiation (but once you are actually getting the pack from the server,
it should be the same, and that time tends to dominate, anyway).

I'm not sure why you care about the vpn, unless:

  1. You are worried about man-in-the-middle attacks fetching via
     git://, which you can presumably disregard over the vpn.

  2. You want to allow pushes over git:// instead of ssh. I wouldn't
     recommend this, but you can do so by setting daemon.receivepack in
     the config.

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: msysgit with git protocol to linux server
  2012-05-18 23:57 ` Jeff King
@ 2012-05-19  8:14   ` Johannes Sixt
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Sixt @ 2012-05-19  8:14 UTC (permalink / raw)
  To: Jeff King; +Cc: Neal Kreitzinger, git

Am 19.05.2012 01:57, schrieb Jeff King:
>   2. You want to allow pushes over git:// instead of ssh. I wouldn't
>      recommend this, but you can do so by setting daemon.receivepack in
>      the config.

But push via git protocol does not work when the client is MinGW git
(msysgit). I've posted a work-around on the msysgit list, but it is
still on my agenda to re-submit a cleaned-up version of it.

http://thread.gmane.org/gmane.comp.version-control.msysgit/13409

-- Hannes

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-19  8:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-18 19:55 msysgit with git protocol to linux server Neal Kreitzinger
2012-05-18 23:57 ` Jeff King
2012-05-19  8:14   ` Johannes Sixt

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).