sudo apt update
sudo apt install git
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt install git-lfs
git lfs install
This command sets up Git LFS globally on your system.
git lfs version
It should display the version information if the installation was successful.