问题描述:
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