Git-lfs Installation
Linux
Debian and Ubuntu
For Ubuntu 18.04, Debian 10, and newer versions.
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
# For global installation
git lfs install
# For existing repository installation only
git lfs install --local
NOTE: An additional
--skip-smudge
can be added to skip automatic downloading of objects onclone
orpull
. Conversely, it would require a manualgit lfs pull
every time a new commit is checked out on your repository. This is more useful for cases where you donβt always want to download/checkout every large file.
Uninstall
# For global uninstall
git lfs uninstall
# For local uninstall
git lfs uninstall --local
Ref: