git pull报错

在使用git pull时发生错误
图片描述

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

阅读 6k
8 个回答

你的分支名 为什么以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 branch -a命令查看一下,看有没有对应的分支

你的分支名错了。

默认是origin master

git pull origin 360liuxueDisPage

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

这是分支名字有问题!

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进