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

本文详细介绍了当使用Git进行Repoupload操作时遇到missingblob错误的解决方法,包括使用gitgc清理本地索引、执行gitpull--rebase以及再次尝试repoupload的操作步骤。
碰到的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 .

(yolo) robot@CYN:~/pycharm-community-2023.1/PythonProjects/ultralytics-main$ pip install -r /home/robot/pycharm-community-2023.1/PythonProjects/ultralytics-main/ultralytics-main/requirements.txt -i https://repo.huaweicloud.com/repository/pypi/simple/ Looking in indexes: https://repo.huaweicloud.com/repository/pypi/simple/ Collecting git+https://github.com/YOUR_USERNAME/ultralytics.git@custom-branch (from -r /home/robot/pycharm-community-2023.1/PythonProjects/ultralytics-main/ultralytics-main/requirements.txt (line 15)) Cloning https://github.com/YOUR_USERNAME/ultralytics.git (to revision custom-branch) to /tmp/pip-req-build-2zcnxj25 Running command git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 Username for 'https://github.com': Password for 'https://github.com': remote: Repository not found. fatal: 'https://github.com/YOUR_USERNAME/ultralytics.git/' 鉴权失败 error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × git clone --filter=blob:none --quiet https://github.com/YOUR_USERNAME/ultralytics.git /tmp/pip-req-build-2zcnxj25 did not run successfully. │ exit code: 128 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. 为什么我指定了华为源还是有这个报错
06-09
评论 2
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值