【发布时间】:2018-07-27 22:49:16
【问题描述】:
由于以下错误,我无法从远程存储库中提取更改。我正在尝试从这个存储库的主分支中提取。
c:\supportal>git pull
error: cannot lock ref 'refs/remotes/origin/KANBAN': unable to resolve
reference refs/remotes/origin/KANBAN: Invalid argument
From https://github.cerner.com/ApplicationServices/supportal
! [new branch] KANBAN -> origin/KANBAN (unable to update local
ref)
error: cannot lock ref 'refs/remotes/origin/kanban': unable to resolve
reference refs/remotes/origin/kanban: Invalid argument
! [new branch] kanban -> origin/kanban (unable to update local
ref)
远程存储库 KANBAN 是一个我不再使用的旧工作目录。不知道如何解决这个问题。
我尝试了以下方法,但没有成功: git 远程修剪起源
$ git gc --prune=now
error: bad ref for refs/remotes/origin/kanban
fatal: bad object refs/remotes/origin/kanban
error: failed to run repack
我还删除了远程源引用并重新添加了它,然后运行了 git pull 但也没有修复它..
【问题讨论】: