在使用git pull時發(fā)生錯誤
請問有遇到過類似的問題嗎? 之前可以pull, 別人更新代碼之后就不可以了,幫別人問的,自己也學(xué)習(xí)一下
你的分支名 為什么以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
提示說了找不到遠(yuǎn)程分支的引用,有可能分支名錯了,有可能引用被刪除了,你用git branch -a
命令查看一下,看有沒有對應(yīng)的分支
你只能將一個分支拉下來,可以使用git pull origin feature:develop來將遠(yuǎn)程的feature分支和本地的develop分支進(jìn)行合并.因為看你當(dāng)前是處于develop分支的.