Git remote: error: this exceeds file size limit of 100.0 MB

It is mainly aimed at the problems encountered by novices. When I first upload code with GitHub, the above errors are reported because individual files are large. After local deletion, the same error will still be reported, indicating that it has been saved to a cache area of GIT. You can modify it as follows:

For example, the large file I deleted before is a.txt (the same is true for folders). Execute the following code to delete it in a git cache

git filter-branch -f --prune-empty --index-filter 'git rm -rf --cached --ignore-unmatch a.txt' --tag-name-filter cat -- --all

Read More: