I have a lfs local repo with its remote bitbucket. I work with Unity and Visual studio and my routine is assisted commit with visual studio. My current commits are not allowed to be push
-ed.
Git throws missing files errors but when I follow the path the files are there and ok.
How do I resolve this issue?
CodePudding user response:
As seen here, your error should be like:
(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 '[email protected]:group/project.git'
Following this issue, start with
git lfs fetch --all
See if the error persists then.
If it does, try it from a fresh cloned repo (git lfs clone my-repo
)
From the discussion:
git lfs fetch --all
could not work, since what is missing was never pushed in the first place- a new
git lfs clone
, followed by reporting the old repository local work did get added, committed and pushed successfully.