Kirovj's Chaos
Write whatever I want. Github


一一 李文亮

Correct way to set git proxy

When use

git config –global http.proxy protocol://

protocol & port is your proxy

For the specified domain

git config –global http.url.proxy protocol://

example: http.

When use ssh

vim ~/.ssh/config
    User git
    ProxyCommand connect -H %h %p

thanks to ericclose

本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。