美文网首页
设置代理

设置代理

作者: 风亡小窝 | 来源:发表于2021-02-20 15:48 被阅读0次
查看当前代理设置

git config --global http.proxy

设置当前代理为 http://127.0.0.1:1080 或 socket5://127.0.0.1:1080

git config --global https.proxy http://127.0.0.1:10808
git config --global http.proxy socks5://127.0.0.1:10809

删除代理

git config --global --unset https.proxy

配置范围
  • global 即是读/写当前用户全局的配置文件(~/.gitconfig 文件,属于某个计算机用户)
  • system 即是读写系统全局的配置文件(/etc/gitconfig 文件,属于计算机)
  • local 即是当前 clone 仓库 的配置文件(位于 clone 仓库下 .git/config)。

https://blog.csdn.net/lizhihaoweiwei/article/details/76849755

相关文章

网友评论

      本文标题:设置代理

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