Kirovj's Chaos
Write whatever I want. Github

能,明白

一一 李文亮


Correct way to set git proxy

When use https://github.com/user/respository.git

git config –global http.proxy protocol://127.0.0.1:port

protocol & port is your proxy

For the specified domain

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

example: http.https://github.com.proxy

When use ssh

vim ~/.ssh/config
Host github.com
    User git
    ProxyCommand connect -H 127.0.0.1:port %h %p

thanks to ericclose


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