When I'm connected to my company VPN, the "Git bash here" takes 1 minute to start. "ls" command or any other MSYS2 linux comand takes 1 minute as well.
If I'm not connected to the VPN, it all works just fine.
When connected to VPN, I execute "bash" from windows 10 cmd line, and it takes 1 minute to open the bash. I close the bash and type "bash" again and the command executes immediately. But if i wait for 2 or 3 minutes and execute "bash", it takes again 1 minute to execute.
I have searched and tried many solutions, but none worked for me: I tried this: Git Bash is extremely slow on Windows 7 x64 and this https://cygwin.com/faq.html#faq.using.startup-slow, among others, but didn't work.
I suspect on a DNS problem when VPN is active. But I tried changing DNSs by hand and didn't solve the problem.
I also tested MSYS2 stand-alone, version msys2-x86_64-20210228, and removed GIT: Same problem! with the bash or any other MSYS2 command. The bash window opens immediately if not connected to the VPN, but it takes 55 seconds first time after connecting to VPN.
My system:
- Git version 2.31.1.windows.1
- Windows 10 (10.0.19041 Build 19041)
- msys2-x86_64-20210228