Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There could be several reasons why git bash on Windows is sluggish when connected to the internet but works fine when disconnected. Here are some possible explanations:

  1. Network Latency: If your internet connection is slow or has high latency, it could cause delays in git bash commands. This could be due to the time it takes for the packets of data to travel back and forth between your computer and the remote repository.

  2. Antivirus Software: Some antivirus software may cause git bash to slow down when connected to the internet. This is because the software might be scanning each git command and checking for any potential security threats.

  3. Firewall: If your computer is behind a firewall, it could slow down git bash as the firewall might be blocking some or all of the internet traffic required for git commands to work correctly.

  4. DNS Issues: If there are issues with your DNS settings or the DNS server is slow or unresponsive, it could result in slow performance when using git bash.

To troubleshoot the issue, you can try disabling your antivirus software temporarily, checking your DNS settings or contacting your network administrator, and running a speed test on your internet connection to see if there are any latency issues.