step
- just simple:
sudo apt-get install git-lfs
-
Setup Git lfs for your user account
git lfs install
-
If you have already tried to commit large files and got the error then you must first undo the commit, use
git reset — soft HEAD~1
otherwise ignore this step. -
Select the file types that you want Git-lfs to manage using the command
git lfs track “*.csv”
, this creates a .gitattributes file. -
Add the .gitattributes file along with other files which need to be committed and push the changes.
git add .gitattributes TrainAndValid.csv
git commit -m "Adding Train and Validation set"
git push -u origin main