Cannot use older version of git-lfs on a repo created using latest version
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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.