remove files from git history for specific size delete big files from git history example deleting files more than 100Mb cd folder/your/repositorybfg --strip-bl
delete big files from git history
example deleting files more than 100Mb
cd folder/your/repository
bfg --strip-blobs-bigger-than 100M .
clean old logs before push
git reflog expire --expire=now --all && git gc --prune=now --aggressive
push
git push