Cannot use older version of git-lfs on a repo created using latest version

匿名 (未验证) 提交于 2019-12-03 00:48:01

问题:

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?

回答1:

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



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!