Git proxy configuration

Sometimes working through a proxy is pretty tedious.

We are going how to configure git to work through a proxy

A generic description, how to make git uses a specific proxy:

#http
git config --global http.proxy <protocol>://<username>:<password>@<ip_host>:<port>

#https
git config --global https.proxy <protocol>://<username>:<password>@<ip_host>:<port>

#to disable using proxy
git config --global --unset http.proxy
protocol
Use to be http or https
username
The proxy user name
ip_host
Proxy host address
port
Proxy listening port
password
Your proxy password

More info in official Git configuration.

Comments