您的位置:首页 > 其它

git代理设置 加速git clone

2016-10-15 11:27 309 查看

给git 加代理

bash

git config --global http.proxy http://127.0.0.1:8787 git config --global https.proxy http://127.0.0.1:8787 git config --global http.sslverify false


http://127.0.0.1:8787       这里 我使用的是 lantern 的代理


编辑 git配置文件 ~/.gitconfig

添加

[http]
sslverify = false
proxy = http://127.0.0.1:8787 [https]
proxy = http://127.0.0.1:8787[/code] 
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git git-clone 加速git