How to make git use a proxy server 

Joined:
01/15/2009
Posts:
89

October 11, 2014 17:13:16    Last update: October 11, 2014 17:13:16
  • To use a proxy to git:
    $ git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
    

    or
    $ git config --global https.proxy http://proxyuser:proxypwd@proxy.server.com:8080
    


  • To unset proxy:
    $ git config --global --unset http.proxy
    $ git config --global --unset https.proxy
    


  • To see the settings:
    $ cat ~/.gitconfig
    

Share |
| Comment  | Tags