Git/代理

直接使用 [[Clash]] 终端代理命令,然后使用 https 下载

设置代理

1
2
3
git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890
git config --global http.sslVerify false

取消代理

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

通过 .ssh/config 配置

1
2
3
#ssh .ssh/config
Host github.com bitbucket.org
ProxyCommand nc -x 127.0.0.1:7890 %h %p
作者

Ryen Xiang

发布于

2024-10-05

更新于

2024-10-05

许可协议


网络回响

评论