git - Reduce Repo Size on Bitbucket -
i've realised repo coming in @ on 1gb, seems .git
folder weighs in @ 800mb. why , right ways go reducing this?
any appreciated. in advance!
instead of using git filter-branch
manually, highly recommend using bfg (https://rtyley.github.io/bfg-repo-cleaner/), since faster , can rid of larger files. instructions on page easy follow.
however, note bfg removes large files .git history if not committed repo. before use bfg, should
git rm --cached filename
any large files (like large zips mentioned above). if don't need them anymore, can delete them completely. , remember add *.zip
.gitignore!
Comments
Post a Comment