kevinwqw 发表于 2010-12-29 17:12

git clone出现error: unable to find [SHA]错误

出错信息如下:
git clone gitosis@192.168.0.200:repositories/project.git
Cloning into project...
gitosis@192.168.0.200's password:
remote: Counting objects: 10850, done.
remote: error: unable to find 8a05e2719c541c3700cacf0cf5098b0939c3cc6d
remote: Compressing objects: 100% (9024/9024), done.
remote: fatal: object 8a05e2719c541c3700cacf0cf5098b0939c3cc6d is corrupted
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed

另外的人用这个库pull和push都没有问题,新的人clone就提示以上错误。怎样才能把服务器上的库恢复正常呢?

kevinwqw 发表于 2010-12-29 17:46

本帖最后由 kevinwqw 于 2010-12-29 17:47 编辑

解决了,把服务器上的库删除了,然后新建一个空的库,从没有问题的地方push一次,就可以了。还好git是分布式的
但是为什么会出现丢失了一个快照,优点奇怪。回想起来,也许是之前做过一次reset
页: [1]
查看完整版本: git clone出现error: unable to find [SHA]错误