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 <name> <url>

and then push using the remote name

    git push <name>

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

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

git push -u origin master

git

相关推荐