Wednesday, December 24, 2014

Set and Remove Proxy for Git

To set Proxy into git, do this step
  1. Open git console
  2. Type this
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
git config --global https.proxy https://proxyuser:proxypwd@proxy.server.com:8080
 Where:
  • proxyuser is username for proxy
  • proxypwd is proxy password for the username
  • proxy.server.com is address of the proxy. It can be IP address.
  • 8080 is proxy port. You can change it based on your proxy configuration
If you don't use username and password, you just need to use this format:
git config --global http.proxy http://proxy.server.com:8080
git config --global https.proxy https://proxy.server.com:8080
 If you want to unset proxy, just do this:
 git config --global --unset http.proxy
 git config --global --unset https.proxy

0 comments:

Post a Comment