首先可以尝试 git lfs install
是否可以,不可以后就看这个连接:https://stackoverflow.com/questions/48734119/git-lfs-is-not-a-git-command-unclear。
我的是ubuntu,所以:
保证这个前提:
git-lfs requires git version 1.8.3.1 or later. You can check the version you have by running git --version, and update if required.
执行这个:
$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
$ sudo apt-get install git-lfs
得到结果:
Finally, run git-lfs install to install git-lfs on your system. You can always run git-lfs uninstall to uninstall.
日志: