当前位置:   article > 正文

fatal: The current branch master has no upstream branch._enumerating objects: 25, done. delta compression u

enumerating objects: 25, done. delta compression using up to 16 threads tota

问题:git push时,出现fatal: The current branch master has no upstream branch.

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

原因:本地的分支与远程仓库的分支进行关联

解决方法:

git push -u origin master
  • 1

推送成功:

PS D:\2022\03\forum> git push -u origin master
Enumerating objects: 25, done.
Counting objects: 100% (25/25), done.
Delta compression using up to 8 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (25/25), 58.88 KiB | 4.21 MiB/s, done.
Total 25 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/**/**.git
 * [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

可提供远程搭建运行服务

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

点击获取项目源码

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/码创造者/article/detail/891435
推荐阅读
相关标签
  

闽ICP备14008679号