title: Git Bash is extremely slow on Windows 7 x64
body: <p>I've been using Git on both Windows and Ubuntu during the development of a small project, frequently flipping back and forth between the two. The issue is that <em>Git Bash</em> consistently becomes slow.</p>
  
  <p>When I say slow, I mean that running <code>cd</code> takes anywhere from 8-25 seconds, running <code>git</code> commands take from 5-20 seconds, and <code>ls</code> can take up to 30 seconds sometimes. Needless to say, this is not fun, not to mention unproductive. I know Git is slower on Windows, but this is ridiculous.</p>
  
  <p>The one solution which has worked--temporarily--for me has been to disable my network connection (as suggested in <a href="https://stackoverflow.com/questions/2835775/msysgit-bash-is-horrendously-slow-in-windows-7">this answer</a>), start Git Bash, and then reconnect. Sometimes it continues to run quickly for days after doing that, but the performance always degrades eventually. I've trawled through the msysgit discussion group, Stack&nbsp;Overflow, msysgit issue list, etc. on and off for weeks, but I haven't been able to turn up solutions which work.</p>
  
  <p>So far, I've tried:</p>
  
  <ul>
  <li>Adding Git &amp; project folders to the virus scanner's exclusion list</li>
  <li>Disabling my virus scanner completely (Kaspersky IS 2011)</li>
  <li>Ensuring that Outlook is not running (Outlook 2007)</li>
  <li>Shutting down all other applications</li>
  <li>Running Git Bash as administrator</li>
  <li>Disabling network connection, starting Git Bash, and keeping connection disabled</li>
  <li>Disabling network connection, starting Git Bash, re-enabling connection (works only occasionally)</li>
  <li>Running <code>git gc</code></li>
  <li>And combinations of the above</li>
  </ul>
  
  <p>I did read that a couple of people had success disabling Bash completion, but ideally I'd like to keep that active. The version of msysgit is 1.7.3.1-preview20101002 &amp; the OS is Windows 7 x64. Running the same things on Linux is, predictably, lightning fast. I would use Linux exclusively, but I need to run stuff in Windows, too (certain applications, testing, etc.).</p>
  
  <p>Has anyone encountered a similar issue? If so, what was the underlying problem and what was the solution (if any)?</p>
  
  <p>This extends beyond just the Git repositories, but just for reference, the repositories I've been using Git with have been pretty small: ~4-50 files maximum.</p>