git push失败,报错fatal: does not appear to a git repository Could not read from remote repository

我们在使用git的时候,git push会报错,

$ git push -u origin master
fatal: '[email protected]/zejun_web' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

需要检查一下git remote -v

是remote命令错了,

先remove掉添加在远程的origin

git remote rm origin

此时再用 git remote -v

 

 就会发现没有origin了
再正确输入

git remote add origin https://gitee.com/shenlinlang/personal.git

在git push 就可以了

 

你可能感兴趣的:(Windows,git,github,vscode)