Git/Repo-----Repo upload时出现的missing blob问题解决方法

碰到的Git/Repo问题及其解决方法
1.Repo upload时出现的missing blob问题解决方法
错误信息:

28850466@cnbjlx3976:~/upload/vendor/opps$ repo upload .
Upload project vendor/opps/:
  branch newupload ( 1 commit, Mon Apr 11 17:24:52 2011 +0800):
         ccb50c67 Update seekbar layout as to like music application
to review.me.net (y/n)? y
Counting objects: 1422, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (580/580), done.
Writing objects: 100% (1250/1250), 12.11 MiB | 1.70 MiB/s, done.
Total 1250 (delta 564), reused 1087 (delta 457)
fatal: Unpack error, check server log
error: unpack failed: error Missing blob c107a14782ddbb133fb5cff1d1f0e042e6ed0970
To ssh://me@review.me.net:29418/platform/vendor/opps
! [remote rejected] newupload -> refs/for/ginger-dev (n/a (unpacker error))
error: failed to push some refs to 'ssh://me@review.me.net:29418/platform/vendor/opps'

--------------------------------------------
[FAILED] vendor/opps/ newupload        (Upload failed)


错误原因大概是因为本地索引坏了。解决步骤如下:
$git gc
$git pull --rebase
$repo upload .

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值