Cannot use an older version of git-lfs in a repo created using the latest version

I have a local repo with a monitored git-lfs file association. It was created using git -lfs version 2.1.0.

If I try to do a check on this repo using git -lfs version 1.5.6, I get an error message:

Error: unknown command "post-checkout" for "git-lfs" Run 'git-lfs --help' for usage. 

I get the same error after running git-lfs install in the repo.

Is git-lfs not backwards compatible?

+7
git-lfs
source share
1 answer

I think the answer to your question is "no, git lfs does not support backward compatibility."

You will need to upgrade the version of git lfs to a newer one for this to work properly.

Here you can see the latest version (and previous versions):

https://github.com/git-lfs/git-lfs/releases

0
source share

All Articles