Netlify LFS Error: error: failed to push some refs to repo

I’m setting up Netlify LFS on a very basic gatsby-starter, but I can’t deploy to github

https://claude-cernuschi.netlify.app

I followed this guide exactly, but when I try to push to github I get the following error

➜  claude-cernuschi git:(master) git push origin master
batch response: Client error &{%!!(string=https) %!!(string=) %!!(*url.Userinfo=<nil>) %!!(string=856e99f2-835c-4ef6-bbb3-b78c00bb2bf6.netlify.app) %!!(string=/.netlify/large-media/objects/batch) %!!(string=) %!!(bool=false) %!!(string=) %!!(string=) %!!(string=)}s(MISSING) from HTTP 405
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.
error: failed to push some refs to 'REPO-NAME'

I’m unable to launch my site, please help :pray:

Hi, @iamkratos. That guide is taking about installing a plugin for the CLI tool which means it is quite out of date. That hasn’t been the correct workflow for years.

I believe the issue here is that the Git credential helper is not installed so Git cannot talk to Large Media. This is installed by the Netlify CLI tool. There is troubleshooting guide about this here:

Would you please try the solution in that support guide and let us know if there are any other questions?