问题:git push时,出现fatal: No configured push destination.
PS D:\2022\03\forum> git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
PS D:\2022\03\forum>
--mirror[=(push|fetch)]
set up remote as a mirror to push to or fetch from
原因:推送至远程仓库时,缺少目标仓库地址
解决方法:
1、添加远程仓库地址:
git remote add origin https://github.com/**/*.git
2、 推送本地代码至远程仓库分支
git push -u origin master
可提供远程搭建运行服务
不会调试运行的同学,你只需打开远程,会帮你搭建调试好一切(JDK、Idea/Eclipse、MySQL、Tomcat、Maven………)文章来源:https://www.toymoban.com/news/detail-512443.html
点击获取项目源码
文章来源地址https://www.toymoban.com/news/detail-512443.html
到了这里,关于解决fatal: No configured push destination.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!