git setting

PROXY SETTINGS

According to the protocol used, settings get differences:

  1. git: core.gitproxy
  2. ssh: set in ssh’s ProxyCommand parameter
  3. http: http.proxy

Example:

1
2
3
4
5
6
7
8
# global proxy
git config --global http.proxy http://url:port

# unset proxy
git config --global --unset http.proxy

# disable SSL verify
git config --global http.sslVerify false