Common causes
- You're offline or the network connection dropped
- The remote URL contains a typo in the hostname
- A VPN or proxy is blocking or rerouting DNS
- Corporate network firewall is blocking outbound Git traffic
How to fix it
- Check your internet connection: ping github.com
- Verify the remote URL is correct: git remote -v
- Fix the remote URL if it's wrong: git remote set-url origin <correct-url>
- If on a VPN, try disconnecting it and retrying: git push / git pull
Example
fatal: unable to access 'https://github.com/user/repo.git/': Could not resolve host: github.comRunning git push or git pull with no network connection
Have a different error?
Paste any error message into the Error Translator to get an instant explanation.
