I receive the following error when pushing my commits
remote: warning: File var/log/system.log is 57.82 MB; this is larger than recommended maximum file size
git rm or git rm --cached isn't enough to remove that file fir the history stored in your repo.
You need to:
use BFG Repo Cleaner, as suggested above.
bfg --strip-blobs-bigger-than 1M my-repo.git
use git gc --agrressive --prune=now (after BFG), as detailed in "Reduce git repository size"
git push -f to force the new history on your remote repo.