Git proxy configuration

How to configure git to work through a proxy

15/11/2012 Available in es
Git
Proxy
Tips and Tricks

Sometimes working through a proxy is pretty tedious.

We are going to describe how to configure https://git-scm.com to work through a proxy.

http proxy
git config --global http.proxy http://<username>:<password>@<ip_host>:<port>
https proxy
git config --global https.proxy https://<username>:<password>@<ip_host>:<port>
to disable using proxy
git config --global --unset http.proxy
  • username: The proxy user name.

  • ip_host: Proxy host address.

  • port: Proxy listening port.

  • password: Your proxy password.