socks5-Git代理

全局代理,写入配置

‘’’
git config –global http.proxy ‘socks5://127.0.0.1:1086’
git config –global https.proxy ‘socks5://127.0.0.1:1086’
‘’’

清除配置

‘’’
git config –global –unset http.proxy
git config –global –unset https.proxy
‘’’

临时代理

‘’’
ALL_PROXY=socks5://127.0.0.1:8888 git clone https://github.com/some/one.git
‘’’