git pull显示“fatal:Could not find remote ref refs / heads / xxxx”并挂断电话 [英] git pull displays "fatal: Couldn't find remote ref refs/heads/xxxx" and hangs up
问题描述
我创建了一个名为'6796'的分支,然后我将它推送到远程,在另一台服务器上进行了检查,进行了其他编辑,推送它,然后将其与主服务器合并,并在本地和远程删除它( git push:6796
) - 在另一台服务器上。现在,当我运行 git pull
时:
I created a branch called '6796', then I pushed it to remote, checked it out on another server, made other edits, pushed it, then merged it with the master, and deleted it - locally and remotely (git push :6796
) - on the other server. Now, when I run git pull
:
fatal: Couldn't find remote ref refs/heads/6796
user@host:~/path/to/repo$ fatal: The remote end hung up unexpectedly
但 git pull origin master
正常工作。在我看来,有一些6796引用挂起...如何解决这个问题?
but git pull origin master
works normally. It seems to me that there is some 6796 reference hang up... how to resolve this?
推荐答案
可能有一些命令要解决它,但我会先从您的 .git / config
文件中查找对该分支的引用,然后将其删除。
There are probably some commands to resolve it, but I would start by looking in your .git/config
file for references to that branch, and removing them.
这篇关于git pull显示“fatal:Could not find remote ref refs / heads / xxxx”并挂断电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!