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
Leave a Reply

Your email address will not be published.

Sign Up for Our Newsletters

Get notified of the best deals on our WordPress themes.

You May Also Like
Powershell

How to Comment in PowerShell Script

Table of Contents Hide Single Line Comment in PowerShellMultiLine Comments in PowerShellSyntax for  Comment Based Help in FunctionsSyntax for Comment-Based Help in Scripts Like any other programming language, PowerShell also…
View Post
How To Check If A File Exists In Python

How to check if a file exists in Python?

Table of Contents Hide Python check if a file exists using OS ModuleUsing os.path.exists()Using os.path.isfile()Using os.path.isdir()Using pathlib.Path.exists() When you perform a file operation such as reading from a file or…
View Post