How to configure Git proxy?

If you are working in the corporate company all the internet requests usually goes through the corporate firewall. The Git will simply throw an error saying “Request timeout” whenever you try to access git fetch, pull or push.To solve this issue, we need to configure git proxy. Just open up the Git Bash or Powershell on your computer and then add the git config proxy user commands of git as shown below.

Configure Git proxy

git config --global http.proxy http://username:password@proxy.server.com:8080
git config --global https.proxy http://username:password@proxy.server.com:8080

// Replace username with your proxy username
// Replace password with your proxy password
// Replace proxy.server.com with the proxy domain URL.
// Replace 8080 with the proxy port no configured on the proxy server.

How to Remove Git Proxy?

git config --global --unset http.proxy
git config --global --unset https.proxy

How to Verify Currently Set Git Proxy?

git config --global --get http.proxy
git config --global --get https.proxy

0 Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
XOR in Python

XOR in Python

XOR Operator in Python is also known as “exclusive or”  that compares two binary numbers bitwise if two bits are…