fatal:'origin' does not appear to be a git repository

git push 时遇到的问题如下图:大概意思是我没有把它添加到远程仓库中去。

因为之前push报错我就执行了git remove rm origin命令将其移除了。所以后面push失败。

 

 解决方法:

先执行git remote add origin +远程仓库的地址;再执行push命令就可以了

posted @ 2021-11-01 18:08  jkal  Views(166)  Comments(0)    收藏  举报