Cannot upload to the git even git lfs is checked ... windows using git tortoise

git.exe push --tags --progress “origin” master:master
Locking support detected on remote “origin”. Consider enabling it with:
git config lfs.https://gitlab.aicrowd.com/hannan4252/food_project.git/info/lfs.locksverify true Locking support detected on remote "origin". Consider enabling it with: git config lfs.https://gitlab.aicrowd.com/hannan4252/food_project.git/info/lfs.locksverify true
Enumerating objects: 56, done.
Counting objects: 100% (56/56), done.
Delta compression using up to 8 threads
Compressing objects: 100% (53/53), done.
remote: fatal: pack exceeds maximum allowed size
fatal: sha1 file ‘’ write error: Broken pipe
error: remote unpack failed: unpack-objects abnormal exit
error: failed to push some refs to ‘git@gitlab.aicrowd.com:hannan4252/food_project.git’

have you setup git-lfs properly? These are the steps I used:
(check that git-lfs is setup correctly in your git configuration files)

git lfs install

track the model files, if the models are saved as model.pth for example, use the following to track all pth files

git lfs track '*.pth'

Next, you need to add .gitattributes to your git repository.

git add .gitattributes 

Now that this is all set up, you should be able add the model to the git repo by

git add .
git commit -m "commit message"
git push -u origin master

Let me know if this helped.

-Shraddhaa

Thanks Shraddha, my clients was not compatible with git lfs so i had to install new client … Thanks for the help though :slight_smile: