我们在做openharmony的时候,关于lfs推送的时候,经常出现错误,本文提供解决办法
git push -u origin --all Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://gitlab2.kylin.com/sh-product-Embedded/openharmony/device_soc_rockchip.git/info/lfs.locksverify true Locking support detected on remote "origin". Consider enabling it with: $ git config lfs.https://gitlab2.kylin.com/sh-product-Embedded/openharmony/device_soc_rockchip.git/info/lfs.locksverify true LFS upload failed:cts: 50% (4/8), 172 MB | 0 B/s (missing) rk3568/hardware/gpu/lib/libmali-bifrost-g52-g2p0-ohos.so (ad12817eb634607e114fa6fcf2b4fc18244b20172664f9f374ed1ef844df7cda) (missing) rk3568/hardware/gpu/lib64/libmali-bifrost-g52-g2p0-ohos.so (e7902e8a59cec7211f3ca2dcc53cb8a1e94b8328023025d7fcc2fb2dacf07e41) hint: Your push was rejected due to missing or corrupt local objects. hint: You can disable this check with: 'git config lfs.allowincompletepush true' error: 无法推送一些引用到 'git@gitlab2.kylin.com:sh-product-Embedded/openharmony/device_soc_rockchip.git'
此原因是推送git的时候,lfs 的object不完善,需要单独拉一下
git lfs fetch --all origin OpenHarmony-4.0-Release
这样再通过git push的仓库的lfs是完善的
git push -u origin --all