git报错:fatal: 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  

and then push using the remote name

    git push 

解决办法:
在git仓库创建新的仓库然后复制仓库URL链接:

git remote add origin https://github.com/xxxxx/xxxxx.git

git push -u origin master

你可能感兴趣的:(git报错:fatal: No configured push destination.)