一. 配置代理 (使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