I'm not sure what have been changed, but my Git installation started to be extremely slow on an average-sized repository. Others use Git with the same repository on similar machines.
Various commands working with local files are slow, e.g. status & commit. push is fast.
Windows 10, Git 2.11.0 64 bit, high CPU consumption.
Typical problems and solutions already ruled out:
- Antivirus
- Network drive
core.fscache
time git status (from git-bash aka MinGW):
real 0m29.017s
user 0m0.015s
sys 0m0.031sTracing performance with GIT_TRACE_PERFORMANCE=true git status unfortunately has shown only a single atomic chunk:
performance: 32.583549907 s: git command: git status 13 2 Answers
This Stack Overflow post worked for me: Git Bash (mintty) is extremely slow on Windows 10 OS
Old question, I know, but I recently encountered the problem and found the answer - so thought I'd proliferate. Essentially, it was an issue with the AMD Radeon Graphics Driver slowing down mintty. Go to Device Manager, and disable AMD Radeon Graphics in favor of Intel Integrated Graphics. I've tried to find out why, but no luck so far.
5If you scenario is like mine, and you don't have an AMD Graphics Driver, then try creating a HOME environment variable which points to your user profile directory (e.g. C:\Users\UserName), as is suggested further down in:
Git Bash Mintty is extremely slow on Windows 10 OS
One caveat... the explanation in that link says to make a new System Environment Variable.
I was able to fix my problem by making a new User Environment Variable, which seems preferable to having a system-wide environment variable pointing to your personal home directory.
The PowerShell way of doing it:
Win+R→type powershell→Ctrl+Shift+Enter
Set-ItemProperty -Path HKCU:\Environment\ -Name Home -Type String -Value $Env:UserProfile