[Solved] Git Push error: File: xxx 252.15 MB, exceeds 100.00 MB.

Reason: the file size is too large and cannot exceed 100m

1. Check which file exceeds 100m

git rev-list --objects --all | grep xxx

2. Remove from cache

git filter-branch --tree-filter 'rm -f xxx' --tag-name-filter cat -- --all

XXX represents the file name returned in the first step


Read More: