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

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=/.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?