git push的時候 :No configured push destination.

本地倉庫代碼(git push)上傳git倉庫報錯:

fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using

    git remote add <name> <url>

and then push using the remote name

    git push <name>

怎麼解決:
你的git本地倉庫沒有遠程分支連接, 在git倉庫創建新的倉庫然後複製倉庫URL鏈接:

git remote add origin https://github.com/xxxxx/xxxxx.git
git push -u origin master
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章