fatal: unable to access 'https://github.com/xdd1997/PythonXdd.git/': Failed to connect to github.com port 443: Timed out

两类错误: 

fatal: unable to access 'https://github.com/xdd1997/PythonXdd.git/': Failed to connect to github.com port 443: Timed out

ennnn,可能仅仅是因为网不好,或者pycharm重启,, 很有可能是因为科学.网-代理所致 

反正我的是取消代理解决的。。。

先:

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080

重启git客户端,再:

git config --global --unset http.proxy 
git config --global --unset https.proxy 

重启git客户端,再:

git add .
git commit -m "提交备注"
git push

en就是这样解决的。

 还有。。。

warning: LF will be replaced by CRLF py. The file will have its origin

git config core.autocrlf false

转载仅为学习,不会商用。
欢迎转载原创,附文链接。
原文地址:https://www.cnblogs.com/xdd1997/p/12541739.html