到昨天为止,我还能从遥控器上推拉。我不知道(或不记得)我今天做了什么,突然之间我不能推到远程git回购。我收到了跟随错误
$ git push
Counting objects: 83, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 1.32 KiB | 0 bytes/s, done.
Total 17 (delta 12), reused 0 (delta 0)
remote: fatal: unresolved deltas left after unpacking
error: unpack failed: unpack-objects abnormal exit
To //myserver/git/apps/myApp.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to '//myserver/git/apps/myApp.git'
当我再次尝试克隆时,我会犯错误。
$ Git clone //myserver/git/apps/myApp.git/
Cloning into 'MyApp'...
done.
fatal: unable to read tree 18295307f1270da3c09e3de91890652af4ff7ca8
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
两者都有
git status
和
git checkout -f HEAD
给出误差
fatal: unable to read tree 18295307f1270da3c09e3de91890652af4ff7ca8
有谁能帮我理解哪里出了问题,我该怎么解决?
谢谢
发布于 2015-01-02 17:15:46
所以我解决了这个问题。幸运的是,我的远程回购是最新的,没有错误。使用验证对象命令
git fsck --full
我看见那棵悬着的树。所以我把那些丢失的对象复制到我的本地副本。通过不断的检查和复制,我能够携带所有丢失的对象,并最终能够推送。伊维的事情现在是最新的。
损坏本地副本的原因可能是我删除了分支。我已经做过了。
https://stackoverflow.com/questions/26742699
复制相似问题