git lfs不是Mac OS上的命令 [英] git lfs is not a command Mac OS
本文介绍了git lfs不是Mac OS上的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
LFS git: 'lfs' is not a git command. See 'git --help'.
我在Mac OS上遇到此问题.iit lfs命令在终端上运行正常.但是,当我从某个脚本运行此命令时,它试图在git中找到lfs命令,这是到目前为止我所了解的.
I am facing this issue on mac os. iit lfs command is working fine on terminal. But when I am running this command from some script it is trying to find the lfs command into the git this is what I understand so far.
请帮助我解决此问题.
推荐答案
- 自制软件用户运行
brew install git-lfs
- MacPorts用户运行
port install git-lfs
验证安装是否成功:
$ git lfs install
> Git LFS initialized.
For more details refer to this doc: https://help.github.com/en/github/managing-large-files/installing-git-large-file-storage
这篇关于git lfs不是Mac OS上的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文