How to remove large files from `git` commit history?
First, analyze the git storage in the directory with: git filter-repo --analyze Then the large files can be removed from git history using git filter-repo as follows: git filter-repo --strip-blobs-bigger-than 10M This removes all files larger than 10MB from .git/objects/ directory. You may have to use --force argument, if the repository is not a fresh clone. The command will also remove the origin remote, so you will need to readd it!...