I have a local repo with a bunch of git-lfs files tracked. It was creted using git-lfs version 2.1.0.
If I try to do a checkout on that repo using git-lfs version 1.5.6, I get the error:
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?
I guess the answer to your question is "no, git lfs is not backwards compatible".
You would need to update your git lfs version to a newer one for this to work properly.
You can see the latest release (and previous releases) here:
https://github.com/git-lfs/git-lfs/releases