git push was rejected due to missing or corrupt local objects
Following are the steps I configured and tried to push git-lfs
cloned a repo
git clone git@gitlab.example.com:group/project.git
copied a tar.gz lfs file from different repo to my current repo, then
git lfs install
git lfs track "*.tar.gz"
git add .gitattributes
git commit -m "message"
while running git push origin master
Error I am facing: (missing) code.tar.gz (f2b4bf22bcb011fef16f80532247665d15edbb9051***)
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done.
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: failed to push some refs to 'git@gitlab.example.com:group/project.git'
For your reference: when I run
ls .git/lfs/objects/f2/b4
I'm not able to find anything inside(this is for newly copied tar.gz file from other repo to current repo ).
but for other jpg file if I run ls .git/lfs/objects/g3/8a
i am able to see c5a9a2e024875718b6377bb15a42fac872a3...