I normally able to push LFS object by using git push command in the cli. However, I got error: GH008
Uploading LFS objects: 100% (2/2), 199 KB | 0 B/s, done.
Enumerating objects: 18, done.
Counting objects: 100% (16/16), done.
Delta compression using up to 12 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.42 KiB | 1.42 MiB/s, done.
Total 12 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), completed with 4 local objects.
remote: error: GH008: Your push referenced at least 2 unknown Git LFS objects:
remote: fec397bef974389e09f46f8b0ae49528bc1f9fe8e2b5be986aa159692a431186
remote: 0d7adaaa8f18f4b90ddb2b4c70e1ba6520728d2e0701260ac0500c93c19b0dce
remote: Try to push them with 'git lfs push --all'.
To github.com:username/repo-name.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:{username}/{repo-name}.git'
I am not able to push to remote master branch from my local.
I have also run git lfs push --all and it works fine, the CLI showed that all files can be uploaded successfully
I am assuming that there’s something wrong with either git LFS or NLM because my teammate also faced the same issue and the Forestry CMS app is not pushing the uploaded image to git.
This is not (to my understanding) a Netlify issue. Here’s a (hopefully handy) blog post from GitHub Git LFS integrity check | GitHub Changelog. It seems you are referencing (local) files that do not exist.
Thanks so much for sharing this with us. Sorry to hear you are encountering obstacles.
I have notified the Support team, and we just need a bit more information to look into this further. Would you please share the following information with us?
Your netlify site name
The contents of the following two files:
.gitattributes
.lfsconfig
Any relevant screenshots or troublshooting steps you have taken
Same as @furiouskj. Removing, re-addding, pushing, force pushing. Including reinstalling Netlify CLI, and going through the whole setup process again. Still broken.
Note, that last command’s output might contain information that shouldn’t be posted publicly.
You can post that information publicly if you check it to confirm it doesn’t contain secure information. You can also private message (PM) that to one of our support staff if you prefer. I’ve confirmed that PMs are enabled for your community logins. Please keep in mind that only one person can see the PM and this will likely mean a slower reply than posting the information publicly. Please feel free to reply to however you prefer though.
Thanks @idroulia for sharing! It’s working for me as well just this morning without me doing anything. So, I’m assuming this was issue from the Netlify side and they resolved it over the weekend. So, thank you Netlify team!
Hi all,
Our backend team did dig into this over the weekend, but didn’t see anything broken so didn’t ship a fix. Github’s status page doesn’t mention any outages. We were going to request a bit more info (the details Luke asked for here: Unable to git push LFS files to remote branch, received error: GH008 instead - #11 by luke) from folks in this thread but the issue now seems to be resolved? Please let us know if that’s not the case for you!
About the comments above, we didn’t make any changes on our side and the error itself was coming from GitHub not from Netlify. My best guess is that GitHub fixed the issue as nothing changed here.