赞
踩
问题: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
原因:本地的分支与远程仓库的分支进行关联
解决方法:
git push -u origin master
推送成功:
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'.
不会调试运行的同学,你只需打开远程,会帮你搭建调试好一切(JDK、Idea/Eclipse、MySQL、Tomcat、Maven………)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。