Re: msysgit with git protocol to linux server

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

 



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


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]