git: ‘lfs‘ is not a git command. see ‘git --help‘

在克隆hugging face里面的项目文件的时候,需要用到git lfs,本文介绍安装git lfs方法

在Ubuntu下

curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs

在Windows下

这个链接里面下载最新的安装包即可

在Mac下

brew update
brew install git-lfs

参考链接:https://stackoverflow.com/questions/48734119/git-lfs-is-not-a-git-command-unclear

猜你喜欢

转载自blog.csdn.net/xdg15294969271/article/details/132228436