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