step

  1. just simple:
sudo apt-get install git-lfs
  1. Setup Git lfs for your user account git lfs install

  2. 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.

  3. Select the file types that you want Git-lfs to manage using the command git lfs track “*.csv” , this creates a .gitattributes file.

  4. 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