本地代理加速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’ 也可以手动:vim ~/.gitconfig 添加 [https] proxy = socks5://127.0.0.1:1080 [http] proxy = socks5://127.0.0.1:1080 前提: 已经设置了1080端口的本地代理: http://blog.wktadmin.com/?p=433