首页 > 其他 > 详细

Git设置代理服务器

时间:2021-06-14 17:39:56      阅读:25      评论:0      收藏:0      [点我收藏+]

https://zhuanlan.zhihu.com/p/378894743

# socket

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

# unset

git config --global --unset http.proxy
git config --global --unset https.proxy

# view

git config --global --get http.proxy
git config --global --get https.proxy

 

 

其他样例:

# http
git config --global http.https://github.com.proxy http://127.0.0.1:7890
git config --global https.https://github.com.proxy https://127.0.0.1:7890

# socket
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 --unset https.https://github.com.proxy 
git config --global --unset http.https://github.com.proxy

 

Git设置代理服务器

原文:https://www.cnblogs.com/imoon22/p/14882301.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!