Github push fails due to large failes, no matter what I do

I am trying to push a Unity project into github but it keeps failing due to large file sizes. The files are:


I have already tried adding them to .gitignore, and have also setup git large files and added them to .gtattributes as follows:

*.so binary

* binary

* binary

I still get the file size error messages. I’ve also tried:

rm -r --cached .

and re-add and recommit, but no luck. Basically been trying for days but not getting anywhere.