我在 Linux 上使用 GitKraken 已有几年了。到目前为止,它工作得很好。但是昨天突然我收到了来自 Gitkraken 的消息,他们不再提供对私人存储库的免费访问!我很着急,需要查看我的隐藏文件和当前文件之间的差异,所以我在终端中运行了一些奇怪的 git 脚本。我没有成功,所以我获得了 GitKraken 的免费试用版。然后它对我想做的事情工作得很好,而且我能够拉和推一天。但是昨天我提交了一些文件,当我尝试拉取时,它会询问:“我的分支名称”应该从哪个远程/分支推送或拉取?当我写 origin/"my-branch-name" 并提交它时,它给出了这个错误: 无法读取未定义的属性 "fullName"!
我也尝试在终端中使用 git;当我运行 git status 时,我收到以下消息:
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
On branch dev
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
error: index file .git/objects/pack/pack-a08c14513ad1a7f74b2c0ad8883470516745005c.idx is too small
Your branch is based on 'origin/<my-branch-name>', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
nothing to commit, working tree clean
我不确定我的 git 文件发生了什么,无论是来自 Gitkraken 还是我运行的脚本来查看隐藏文件的差异。stackoverflow中也有类似的问题,但没有一个同时出现这两个错误: 索引文件太小,上游也不见了!
更新:
通过在错误消息中应用建议的“git branch --unset-upstream”,我能够拉和推,但我仍然得到所有索引错误。除此之外,如果我尝试使用 GitKraken 进行拉动,它会失败,然后在终端中通过运行 Git status 它将为上游显示相同的消息:
"Your branch is based on 'origin/<my-branch-name>', but the upstream is gone."
所以我相信 GitKraken 正在搞乱 git 文件!