Skip to content

Instantly share code, notes, and snippets.

@lehtu
Last active March 27, 2023 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lehtu/42b0f36a20279adf8d1d6045fd4e39d2 to your computer and use it in GitHub Desktop.
Save lehtu/42b0f36a20279adf8d1d6045fd4e39d2 to your computer and use it in GitHub Desktop.
This gist has observations and maybe some solutions for Git for Windows being extremely slow.

Problem

Git for Windows slows down a lot after network change or after use of an VPN. For example ls or git status commands took over a minute to complete!

Observations

During this slow pace if network is turned off, then git-bash works normally.

Git for Windows uses __git_ps1 internally for getting some info and that alone takes over a minute!

$ time __git_ps1
real    1m11.238s
user    0m0.031s
sys     0m0.216s

Resources

https://stackoverflow.com/questions/42888024/git-bash-mintty-is-extremely-slow-on-windows-10-os

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment