返回 首页

本地代理加速gitclone


适用于网络大环境引起的git clone 缓慢, 设置git全局代理:

git config --global http.proxy 'socks5://127.0.0.1:1080' 
git config --global https.proxy 'socks5://127.0.0.1:1080'

或者根据实际情况使用:

git config --global http.proxy 'http://127.0.0.1:1080' 
git config --global https.proxy 'https://127.0.0.1:1080'
[https]
        proxy = socks5://127.0.0.1:1080
[http]
        proxy = socks5://127.0.0.1:1080

http://blog.wktadmin.com/?p=433



评论(0)

登录