Skip to content

Instantly share code, notes, and snippets.

@imam-san
Created September 30, 2016 03:15
Show Gist options
  • Save imam-san/bae2ff35e12fe0c742e36c5aebf6b215 to your computer and use it in GitHub Desktop.
Save imam-san/bae2ff35e12fe0c742e36c5aebf6b215 to your computer and use it in GitHub Desktop.
git under proxy
git config --global http.proxy http://proxyuser:[email protected]:8080
change proxyuser to your proxy user
change proxypwd to your proxy password
change proxy.server.com to the URL of your proxy server
change 8080 to the proxy port configured on your proxy server
If you decide at any time to reset this proxy and work without proxy:
Command to use:
git config --global --unset http.proxy
Finally, to check the currently set proxy:
git config --global --get http.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment