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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM