
info:Git走代理的方法:传送门
直接在终端运行下面的内容。
1#走HTTP代理,用这个
2export http_proxy="http://localhost:port"
3export https_proxy="http://localhost:port"
4
5#走socket5协议,用这个
6export http_proxy="socks5://127.0.0.1:1080"
7export https_proxy="socks5://127.0.0.1:1080"
8
9#或者直接All in
10export ALL_PROXY="socks5://127.0.0.1:1080"
info:如果嫌每次都需要执行命令麻烦,可以添加到.bashrc或.zshrc文件中,使用source命令刷新下配置文件就可以生效了。