Disable Git LFS for a remote

amiuhle picture amiuhle · Apr 14, 2016 · Viewed 7.2k times · Source

I'm trying to push to a second remote that doesn't support Git LFS. Is there a way to disable Git LFS for a specific remote using git config?

Answer

Christian picture Christian · Apr 6, 2018

The workaround given by amiuhle works fine for me:

git push --no-verify

It prevents the pre-push hook of git lfs from trying to upload the files. So link-files are committed, but the actual binaries are missing.