git lfs is not a command Mac OS

Noman Maqsood picture Noman Maqsood · Nov 11, 2019 · Viewed 7.3k times · Source
LFS git: 'lfs' is not a git command. See 'git --help'.

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.

Please help me out in fixing this.

Answer

Max Peng picture Max Peng · Nov 11, 2019
  • Homebrew user run
brew install git-lfs
  • MacPorts user run
port install git-lfs

Verify that the installation was successful:

$ 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