美文网首页
git 设置代理

git 设置代理

作者: 那钱有着落吗 | 来源:发表于2020-07-02 11:47 被阅读0次

首先你需要有代理,比如我用的是ssr那么首先看下端口号是多少

image.png image.png

git设置代理命令是:

// 查看当前代理设置 ,注意:必须有代理服务器
git config --global http.proxy
// 设置当前代理为socket5://127.0.0.1:1080
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 https.proxy

相关文章

网友评论

      本文标题:git 设置代理

      本文链接:https://www.haomeiwen.com/subject/zeglqktx.html