代理

直接使用 [[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

终端

1
2
alias proxy='export all_proxy=socks5://127.0.0.1:1080'
alias unproxy='unset all_proxy'

网络回响

作者

Ryen Xiang

发布于

2026-02-17

更新于

2026-02-17

许可协议


评论