git cannot clone or push? failed to connect, connection refused

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_39393712/article/details/88948534

1、出现的问题

ubuntu18.04下git push文件,出现问题
出现的问题在这里插入图片描述

2、最靠谱的文档

参考链接:https://stackoverflow.com/questions/24543372/git-cannot-clone-or-push-failed-to-connect-connection-refused

3、解决的方法

step1 查看proxy的占用情况

env|grep -i proxy
在这里插入图片描述

step2 将这些占用的窗口都干掉

unset HTTPS_PROXY
unset http_proxy
unset HTTPS_PROXY

step3 重新连接

git push origin master

猜你喜欢

转载自blog.csdn.net/weixin_39393712/article/details/88948534
今日推荐