8

Just typing git at the command prompt (of powershell), takes 2.5 seconds until it returns with the help message.

I'm using the git for windows release, installed in C:\Program Files (x86)\Git. When I use cygwin (via babun), I get an error: Hint: your prompt is very slow. Check the installed 'BLODA' software. Maybe this is related? If it is, I'm using a corporate laptop, so can't uninstall antivirus or driver software, are there other options?

IttayD
  • 28,271
  • 28
  • 124
  • 178
  • Look into garbage collection. – Tim Biegeleisen Aug 06 '15 at 06:21
  • If you run git from powershell it will have start the whole MSYS environment each time. Check to see if it runs faster from git bash. – Ross Ridge Aug 06 '15 at 06:43
  • 1
    Didn't want to suggest a duplicate yet, but these are similar questions: http://stackoverflow.com/questions/4485059/git-bash-is-extremely-slow-in-windows-7-x64 and http://stackoverflow.com/questions/2835775/msysgit-bash-is-horrendously-slow-in-windows-7 – nwinkler Aug 06 '15 at 06:44
  • And also here: https://github.com/msysgit/msysgit/wiki/Diagnosing-why-Git-is-so-slow – nwinkler Aug 06 '15 at 06:44
  • 1
    For Windows 10 users, sufficient explanations and solutions in this thread : https://stackoverflow.com/questions/42888024/git-bash-mintty-is-extremely-slow-on-windows-10-os/70192846 – Sahil Dec 02 '21 at 16:07

2 Answers2

4

For me the reason seemed to be the "Inject ConEmuHk" setting in cmder under which I ran git. I've opened a bug https://github.com/bliker/cmder/issues/592

IttayD
  • 28,271
  • 28
  • 124
  • 178
1

Try and see if the issue persists with the latest 2.4+ git for Windows release.

There is a bug related to the git bash startup time which is actively addressed.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250