查看代理设置
git config --global http.proxy
git config --global https.proxy
设置全局代理
git config --global http.proxy '{scheme}://{host}:{port}'
git config --global https.proxy '{scheme}://{host}:{port}'
scheme:代理协议,可选http,https,socks5等
host:代理地址
port:代理端口号
exp:
git config --global http.proxy 'http://127.0.0.1:10819'
git config --global https.proxy 'http://127.0.0.1:10819'
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
只对github.com
#设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
#取消代理
git config --global --unset http.https://github.com.proxy
修改配置文件办法
找到git的配置文件.gitconfig。这个文件一般在用户目录下
# 为github.com配置socks5代理
[http "https://github.com"]
proxy = socks5://127.0.0.1:1080
# 为所有的配置socks5代理
[http]
proxy = socks5://127.0.0.1:1080
最新评论
徒弟可以A师傅,学生可以A老师,为什么外包不能A正式,我觉得很正常。异性相吸这是宇宙真理
PHP天下第一(狗头叼花)
第一个不需要关注公主号直接给激活码的帖子!
客户端超时断开后,服务端如果没有设置超时机制,那也会继续等待处理,万一这期间有消息到了,那不是就接受到消息处理了,但是也没有办法返回到客户端,导致消息丢失。
企业级GO项目开发实战 Kubernetes权威指南 第六版
https://pan.baidu.com/s/1q3bnTncIACKoTZFxvx7BQw?pwd=ii7n
RabbitMQ精讲,项目驱动落地,分布式事务拔高 有吗?
Spring Cloud Alibaba 微服务架构实战 https://pan.baidu.com/s/1jF5voFRoeF0lYAzAPBWSbw?pwd=chqk