首页 > git pull报错

git pull报错

在使用git pull时发生错误

请问有遇到过类似的问题吗? 之前可以pull, 别人更新代码之后就不可以了,帮别人问的,自己也学习一下


你分支是不是写错了。。。


你的分支名错了。

默认是origin master


这是分支名字有问题!


你的分支名 为什么以origin/feature/开头? refspec从来没有这样的格式


git pull [options] [<repository> [<refspec>...]]
<repository> should be the name of a remote repository as passed to git-fetch(1). <refspec> can name an arbitrary remote ref (for example, the name of a tag) or even a
collection of refs with corresponding remote-tracking branches (e.g., refs/heads/:refs/remotes/origin/), but usually it is the name of a branch in the remote repository.

直接 git pull origin 360xxx


git pull origin 360liuxueDisPage


git pull origin master


提示说了找不到远程分支的引用,有可能分支名错了,有可能引用被删除了,你用git branch -a命令查看一下,看有没有对应的分支


你只能将一个分支拉下来,可以使用git pull origin feature:develop来将远程的feature分支和本地的develop分支进行合并.因为看你当前是处于develop分支的.

【热门文章】
【热门文章】