git 命令行push遇到的问题

本地git写了东西很久没提交,再次查看git状态想提交的时候遇到这个问题

$ git push origin master
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
 

解决:

先  $ git remote remove origin ,

然后  $ git remote add origin https://github.com/xuesongde/start-vue.git  (仓库地址)再次push 成功


 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章