You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using git lfs for the first time and I think I made a mistake using this tool. I was working on a local feature branch. I ran following on this branch:
and I kept working on this branch for many days and accumulated many commits. When the feature was code complete, I started an interactive rebase to squash my changes into 1 commit:
git rebase -i HEAD~21
This is when I got an error. The log has this message:
git-lfs/3.5.1 (GitHub; darwin arm64; go 1.21.7; git e237bb3a)
git version 2.39.2 (Apple Git-143)
$ git-lfs filter-process
Error downloading object: xxx/xxx/xxx.xxx (ca46f1a): Smudge error: Error downloading xxx/xxx/xxx.xxx (xxx): [xxx] Object does not exist on the server: [404] Object does not exist on the server
It is true this object does not exist on the server. I am not sure if it is my mistake but it shouldn't be trying to download an object that has not been pushed in the first place. I somehow managed to continue with the rebase. I don't remember the exact steps I followed but most likely I did a combination of:
edit .gitignore to ignore the large files being tracked by git lfs
also ran git config lfs.allowincompletepush true
after this I was able to push to my remote on github. but now I cannot push the lfs file no matter what I do. I keep getting errors:
$ git push origin main
Git LFS upload failed: 0% (0/1), 0 B | 0 B/s
(missing) xxx/xxx/xxx.xxx (xxx)
hint: Your push was rejected due to missing or corrupt local objects.
hint: You can disable this check with: `git config lfs.allowincompletepush true`
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done.
how can I fix this?
when I see something like:
commit 39 (HEAD -> origin/main, main)
does it mean the contents of .git are identical across my local and remote? what is the way out? do I have to contact someone in GitHub?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
I was using git lfs for the first time and I think I made a mistake using this tool. I was working on a local feature branch. I ran following on this branch:
and I kept working on this branch for many days and accumulated many commits. When the feature was code complete, I started an interactive rebase to squash my changes into 1 commit:
This is when I got an error. The log has this message:
It is true this object does not exist on the server. I am not sure if it is my mistake but it shouldn't be trying to download an object that has not been pushed in the first place. I somehow managed to continue with the rebase. I don't remember the exact steps I followed but most likely I did a combination of:
.gitignore
to ignore the large files being tracked by git lfsgit config lfs.allowincompletepush true
after this I was able to push to my remote on github. but now I cannot push the lfs file no matter what I do. I keep getting errors:
how can I fix this?
when I see something like:
does it mean the contents of
.git
are identical across my local and remote? what is the way out? do I have to contact someone in GitHub?Beta Was this translation helpful? Give feedback.
All reactions