git连接超时解决办法

问题描述:

USER@DESKTOP-xxxxx MINGW64 ~/.ssh
$ git push origin master
fatal: not a git repository (or any of the parent directories): .git

1.使用了代理服务器,将代理端口设置

若本地代理端口不为1080,需要修改这个端口!
git config --global http.proxy http://127.0.0.1:1080//1080是需要修改的本地代理端口
 
git config --global https.proxy http://127.0.0.1:1080//1080是需要修改的本地代理端口

2.取消全局代理

取消全局代理:
git config --global --unset http.proxy
 
git config --global --unset https.proxy


版权声明:本文为qq_38860340原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。