“git: ‘lfs’ is not a git command” on macOS

  • 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

Leave a Comment