title: Git clone in windows much slower than in linux
body: <p>I have been chasing a problem with extremely slow clone speeds from github on windows. Linux (kali) does not have this problem.</p>
  
  <p>I am on a 100/40 megabit/s down up connection. I can obtain close to 8mb/s download no problem.</p>
  
  <p>I have plugged my PC directly into our internet outlet without any router or switches.</p>
  
  <p>Windows git clone (windows 10, git 2.14.1) consistently downloads at approxmately 150-210kb/s</p>
  
  <p>I have tried another windows 7 and windows 10 machine with the same issue.
  I have tried a windows XP VM with the same issue.
  I have changed my connection to 4G cellular and speed is the same.</p>
  
  <p>I have tried the github mirror test (<a href="https://bitbucket.org/mirror/git.git" rel="noreferrer">https://bitbucket.org/mirror/git.git</a>) with the same results.</p>
  
  <p>I have tried SSH and HTTPS with a change in speed but still slow.</p>
  
  <p>I have tried other github mirrors also with slow speeds.</p>
  
  <p>I have tried using a VPN (PIA) via silicon valley which was even slower.</p>
  
  <p>If I use kali linux in a VM on the same machine with the network connection bridged I get ~8 mb/s from bitbucket using both SSH and HTTPS.</p>
  
  <p>If I use visual studio team services hosted build agent (windows) I get either roughly 60mb/s (possibly cached?)</p>
  
  <p>I have tried running git from git bash, ubuntu bash (windows 10), windows cmd, powershell all with the same slow speeds.</p>
  
  <p>I have tried the using the "OpenSSL Library" and also the "native windows secure channel library" when installing git.</p>
  
  <p>I have tried downgrading as low as version 2.00 from 2.14 with no difference.</p>
  
  <p>I am located in Australia.</p>
  
  <p>I have spoken to bitbucket support and they have suggested that the MSS/MTU must be 1436 or lower. My router and PC defaults to 1500 however using wireshark in windows I can see that all the packets have an MTU of 1436.</p>
  
  <p>Using tcpdump in kali linux I also see an MTU of 1436.</p>
  
  <p>To summarise I have changed the following things:
  Different PC/VM
  Different versions of windows
  Different physical network connections.</p>
  
  <p>I either get ~200kb/s max in windows, or I get 8mb/s max in linux.</p>
  
  <p>What specifically is different between the linux and windows git implementations that could cause theses speed differences?</p>
  
  <p>edit: In case git was using a slow network share (seen other questions regarding this) I tried doing a <em>cp -r</em> using my local clone and I get roughly 1gb/s transfer speeds (RAID 0 SSD) using the same paths as in my git config.</p>
  
  <p><strong>edit: If I bridge the network in my Kali VM to windows I get 8mb/s, if I use NAT then I get 200kb/s indicating it is something to do with the https via windows rather than the git client causing the problem. Does this help?</strong></p>
  
  <p><strong>edit 2: It appears all HTTPS traffic via windows is capped at 200kb/s, this is a windows problem not a git problem. I will start a new question.</strong></p>
  
  <p><a href="https://superuser.com/questions/1244551/https-traffic-40x-slower-than-http-in-windows-10-x64">https://superuser.com/questions/1244551/https-traffic-40x-slower-than-http-in-windows-10-x64</a></p>