git pull push没有指定branch报错的解决方法
来源:互联网 发布:windows用户管理工具 编辑:程序博客网 时间:2024/05/19 21:43
git push --set-upstream origin master
git 执行git push 和git pull的操作时候,经常看到下面的提示:<br><br>You asked me to pull without telling me which branch you<br>want to merge with, and 'branch.dev.merge' in<br>your configuration file does not tell me, either. Please<br>specify which branch you want to use on the command line and<br>try again (e.g. 'git pull <repository> <refspec>').<br>See git-pull(1) for details.<br><br>If you often merge with the same branch, you may want to<br>use something like the following in your configuration file:<br><br>[branch "dev"]<br>remote = <nickname><br>merge = <remote-ref><br><br>[remote "<nickname>"]<br>url = <url><br>fetch = <refspec><br><br>See git-config(1) for details.<br><br> <br><br>在高版本的 git下面,也许会看见这样的提示:<br><br>There is no tracking information for the current branch.<br><br>Please specify which branch you want to merge with.<br><br>See git-pull(1) for details<br><br>git pull <remote> <branch><br><br>If you wish to set tracking information for this branch you can do so with<br><br>git branch --set-upstream master origin/<branch><br><br>看到第二个提示,我们现在知道了一种解决方案。也就是指定当前工作目录工作分支,跟远程的仓库,分支之间的链接关系。<br><br>比如我们设置master对应远程仓库的master分支<br><br>git branch --set-upstream master origin/master<br><br>这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可。<br><br>在此之前,我们必须要指定想要push或者pull的远程分支。<br><br>git push origin master<br><br>git pull origin master.<br>
阅读全文
0 0
- git pull push没有指定branch报错的解决方法
- git pull push没有指定branch报错的解决方法
- git pull push没有指定branch报错的解决方法
- git pull push未指定远程branch报错
- Git push报错,提示没有权限.
- git push origin master报错,解决方法
- eclipse git报错git The current branch is not configured for pull No value for key branch.master.merge
- Git push/pull的时候报403或者提交时报错:Permission to XXX.git denied to user
- 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 pull和git 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
- YouTube集成
- 存储过程
- php读写xml的四种方法
- js如何获取元素内容
- mybatis 脚本处理语句(条件查询,批量增删改查)
- git pull push没有指定branch报错的解决方法
- mysql全文检索match() against
- 集群技术(四)nginx1.4 -- nginx负载均衡后Session一致性问题之memcached
- solr通过http请求删除数据
- 导航栏随屏幕移动而变化
- mysql数据使用非默认编码进行查询的问题
- 【多线程】一个简单的线程池Demo
- Linux中使用sed命令替换字符串小结
- java炒冷饭系列12 嵌套类(静态内部类)