Sometimes people (maybe mistakenly) upload large files to GIT which are not needed. We want our GIT repos to be small and only contain the necessary source files, i.e:
- not any large images
- not compiled PDF or object files
- not large data sets
Those large files which don't need version control can be managed using GIT-LFS.
We can do this using the useful GIT BFG: https://rtyley.github.io/bfg-repo-cleaner/
- First go through and delete all the current large files that you no longer want, e.g.: 'git rm *.mph'
- otherwise, these will be seen as 'protected' files and won't be removed by the BFG
- do a commit on all these deletions and push them to the branch (or master)
After manually removing and commiting, do a checkout of a fresh mirror: git clone --mirror git@github.com:CaltechExperimentalGravity/Qryo.git