现象:
pycharm push代码出现偶尔超时push失败,有使用代理
解决方法:
1、确认git是否配置了代理
# 查看代理
git config --global --get http.proxy
git config --global --get https.proxy
2、配置代理
# 配置代理,port通过代理的配置文件可以看到
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
3、如果没开代理,就把配置的代理unset
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
4、检查pycharm设置是否开启proxy,修改配置后需要重启pycharm生效