因为代理配置,导致git地址更换后,无法拉取代码,git 取消代理配置即可

查看git配置信息

git config --list

 取消代理配置

#取消http代理
git config --global --unset http.proxy
#取消https代理
git config --global --unset https.proxy

如果还要继续设置代理,则

#http代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
#https代理
git config --global https.proxy 'socks5://127.0.0.1:1080'

猜你喜欢

转载自blog.csdn.net/k0307x1990y/article/details/126622002