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 成功


 

 

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