admin管理员组

文章数量:1636297

问题: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/**/*.git

2、 推送本地代码至远程仓库分支

git push -u origin master

可提供远程搭建运行服务

不会调试运行的同学,你只需打开远程,会帮你搭建调试好一切(JDK、Idea/Eclipse、MySQL、Tomcat、Maven………)

点击获取项目源码

本文标签: configuredFATALdestinationpush