git报错:fatal: No configured push destination.

时间:2020-01-28 21:25:48   收藏:0   阅读:1831

本地仓库代码(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

原文:https://www.cnblogs.com/nayek/p/12238801.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!