解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
来源:互联网 发布:淘宝用户需求分析 编辑:程序博客网 时间:2024/06/04 08:45
问题描述
今天在使用git时,在本地新建了一个分支,按照网上搜到的方式使用 git branch --set-upstream dev origin/dev
(这里的dev为本地新建的分支)命令建立本地分支与远程分支的关联,但该命令执行后并不能成功push变更到远程分支。
问题解决
出现上述问题,说明远程并没有感知到本地新建的这个分支,经过多种尝试后,发现一旦执行 git branch --set-upstream
命令后本地与远程的关联要是仍旧没有建立成功,则再次执行 git push -u origin dev
即可成功建立本地与远程的关联。
git push -u origin dev
阅读全文
0 0
- 解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
- git:fatal the current branch master has no upstream branch
- git push:fatal the current branch master has no upstream branch
- Git master branch has no upstream branch的解决
- Git本地分支与远程分支关联问题(git branch --set-upstream-to=origin/<branch> )
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- Git新建本地分支与远程分支关联问题:git branch --set-upstream
- git branch --set-upstream 本地关联远程分支
- git 本地分支和远程分支联系 Threre is no tracking information for the current branch
- git 解决The current branch is not configured for pull No value for key branch.master.merge found in co
- git branch set-upstream master 分支名/master
- 解决The current branch is not configured for pull No value for key branch.master.
- 解决The current branch is not configured for pull No value for key branch.master.m
- 【问题处理】GIT删除主分支报错:[remote rejected] master (deletion of the current branch prohibited)
- eclipse git报错git The current branch is not configured for pull No value for key branch.master.merge
- 解决The current branch is not configured for pull No value for key branch.master.merge found in config
- 解决The current branch is not configured for pull No value for key branch.master.merge found in confi
- Vue快速入门
- os -- 进程的描述
- 近三周关于javaweb的学习小结与感悟
- JAVA-----JNI调用小bug
- Android-屏幕适配全攻略(一)
- 解决Git建立远程分支关联时fatal the current branch master has no upstream branch 问题
- Python os.chdir() 方法
- [源码]Elasticsearch源码4(选举机制)
- 数组(1)
- Bentley.Hammer.XM.v08.09.400.34 1CD(水锤和瞬态分析软件)好用版\
- SVN不小心删除了服务器上的文件夹解决办法
- 持续集成之③:将代码自动部署至测试环境
- java3
- 在ubuntu下安装配置phabricator