原文:上传至gitlab—— 本地git出现fatal: The current branch develop has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin develop 的问题

git 发生: 具体fatal错误如图: 这个错误就是 表示本地分支与远程分支之间没有连接起来。 解决方法:只需要在输入git push u origin develop 这个develop是远程分支名 , 因为本身我就在本地的develop分支上面,所以可以直接push,如下图,成功。如果本地不在develop分支上,可以先git checkout develop切换分支至本地develop分支 ...

2020-04-08 12:02 0 2368 推荐指数:

查看详情

git branch --set-upstream 本地关联远程分支

最近使用git pull的时候多次碰见下面的情况: There is no tracking information for the current branch.Please specify which branch you want to merge with.See git ...

Tue Oct 17 05:19:00 CST 2017 0 54766
git push --set-upstream origin

设置本地分支追踪远程分支 之后就可以直接使用git push提交代码 ...

Thu Aug 23 22:38:00 CST 2018 0 7334
git push --set-upstream

我在本地建了一个分支wangxiao,开发完之后,提交代码 git add .git commit -m '注释'git push出现下面的问题,这个意思是:当前分支没有与远程分支关联。 因此导致了提交代码失败。 MacBook-Pro-5:web-crm wangxiao$ git ...

Tue Oct 23 23:07:00 CST 2018 0 11211
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM