git pull push未指定远程branch报错
来源:互联网 发布:php 打印数组的函数 编辑:程序博客网 时间:2024/06/11 00:31
git pull push未指定远程branch报错
转自:http://www.360doc.com/content/14/0919/10/19315284_410639672.shtml
在高版本的 git下面,也许会看见这样的提示:
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with
git branch --set-upstream master origin/<branch>
看到第二个提示,我们现在知道了一种解决方案。也就是指定当前工作目录工作分支,跟远程的仓库,分支之间的链接关系。
比如我们设置master对应远程仓库的master分支
git branch --set-upstream master origin/master
这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可。
在此之前,我们必须要指定想要push或者pull的远程分支。
git push origin master
git pull origin master.
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with
git branch --set-upstream master origin/<branch>
看到第二个提示,我们现在知道了一种解决方案。也就是指定当前工作目录工作分支,跟远程的仓库,分支之间的链接关系。
比如我们设置master对应远程仓库的master分支
git branch --set-upstream master origin/master
这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可。
在此之前,我们必须要指定想要push或者pull的远程分支。
git push origin master
git pull origin master.
阅读全文
0 0
- git pull push未指定远程branch报错
- git pull push没有指定branch报错的解决方法
- git pull push没有指定branch报错的解决方法
- git pull push没有指定branch报错的解决方法
- 【JAVA】Eclipse中使用git进行pull远程代码,报错The current branch is not configured for pull No value for key branc
- git push远程报错问题
- Git 远程分支的pull与push
- eclipse git报错git The current branch is not configured for pull No value for key branch.master.merge
- eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found
- git pull all branch
- git---基本操作、新建分支,合并分支branch到主干master ,git pull ,git push
- git pull报错
- 使用git创建local branch并push到远程
- git push 报错"Updates were rejected because the tip of your current branch is behind"
- git push报错 refusing to update checked out branch 解决办法
- git push & git pull
- git pull git push
- git pull 报错:git
- ModelAndView的使用(一)
- 硬件电路,AD-DC电路中元器件的作用
- 360互联网技术训练营第七期
- 设计模式-模板方法模式
- 聊一聊Go中channel的行为
- git pull push未指定远程branch报错
- java 通过数字生成字母
- sqlserver数据库中有参数有返回值的存储过程
- boa服务器的搭建
- 进入MAC下的Containers文件夹
- 鲜为人知的 Linux 命令(1)
- LeetCode--Reverse Linked List II
- Linux删除软链接
- 癫狂的dom——利用css3让dom动起来