Cannot use older version of git-lfs on a repo crea

2019-06-17 03:15发布

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?

标签: git-lfs
1条回答
我想做一个坏孩纸
2楼-- · 2019-06-17 03:21

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

查看更多
登录 后发表回答