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.