1. Method 1 (recommended)
First install git-lfs
free version:
sudo apt-get install git-lfs
centeros version:
sudo yum install git-lfs
Then verify that the installation is successful
$ git lfs install
If displayed:
> Git LFS initialized.
The installation is successful.
2. Method 2
After downloading the installation package from the git official website, manually unzip it and install it.
For details, please refer to: