Correct way to set git proxy
Posted on
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