部分软件包会采用git lfs
方式拉取数据,lfs 不是git 自带的option,执行时会报错误,需要额外下载安装。
参考:https://stackoverflow.com/questions/48734119/git-lfs-is-not-a-git-command-unclear
关于 git-lfs
GLFS: Git Large File Storage
Git LFS is a command line extension and specification for managing large files with Git.
The client is written in Go, with pre-compiled binaries available for Mac, Windows, Linux, and FreeBSD. Check out the website for an overview of features.
- 官网:https://git-lfs.com
- github: https://github.com/git-lfs/git-lfs
简单教程:https://www.bilibili.com/video/BV1ht411T7vT/ (2分钟)
安装 git-lfs
方式一:包管理工具
macOS
brew install git-lfs
ubuntu
sudo apt-get install git-lfs
方式二:下载源码编译
https://github.com/git-lfs/git-lfs/releases
安装 git
https://git-scm.com/download/mac
macOS
# 安装
brew install git
# 更新
brew upgrade git
伊织 2023-01-09