Every time I enter in my command window
git lfs install
the message I get is git: 'lfs' is not a git command. See 'git --help'.
I tried looking up for a solution, but none of the answers were clear. Can someone explain clear how to fix this?
To create a new Git LFS aware repository, you'll need to run git lfs install after you create the repository: # initialize Git $ mkdir Atlasteroids $ cd Atlasteroids $ git init Initialized empty Git repository in /Users/tpettersen/Atlasteroids/. git/ # initialize Git LFS $ git lfs install Updated pre-push hook.
It looks like you haven't downloaded git-lfs on your machine, so git lfs install
isn't a registered command by git.
Install git-lfs as outlined below:
git --version
, and update if required.Download git-lfs by following the steps based on your operating system.
Debian / Ubuntu
$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash $ sudo apt-get install git-lfs
MacOS (Using Homebrew)
$ brew update $ brew install git-lfs
Windows
Download and run the latest windows installer.
Finally, run git-lfs install
to install git-lfs
on your system. You can always run git-lfs uninstall
to uninstall.
More detailed information (such as for installation on other platforms) can be found on git-lfs's installation page.
You can't directly use
git lfs install
Instead of that, you can use these commands to download and install (you have to download it before installing).
sudo apt-get install git-lfs git-lfs install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With