一. 配置代理 (使git走网路代理)
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
其中 1080 是 SOCKS 代理的端口,一般默认 1080,可以在代理工具的设置中查看
地址记录:
https://www.cnblogs.com/alphainf/p/17150558.html
二. 取消代理配置 (git使用正常网络)
//取消http代理
git config --global --unset http.proxy
//取消https代理
git config --global --unset https.proxy
地址记录:
git提交或克隆报错fatal: unable to access ‘https://github.com/tata20191003/autowrite.git/‘: Failed to connec