报错:git: ‘lfs‘ is not a git command.


部分软件包会采用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://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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

编程乐园

请我喝杯伯爵奶茶~!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值