I have a repository for a client that is 287M. It's about 2 1/2 years old, and that size is not that unusual for the repos I've worked on. What IS unusual is that 181M of that is the .git folder.
There are not an excessive amount of branches and for that matter I have always thought a branch itself doesn't take up that much space, it's just a pointer. But please correct me also if this is wrong.
My questions relate to navigation this (and of course fixing it):
- How do I determine which file(s) are responsible for this?
- There is a
db_dump.sql.gz
file that is stupidly included in the repo. How can I remove that file AND remove it from git history entirely as if it never existed? (It's 16M but I'm thinking if an automated process has dumped that file, regularly, and those changes were committed, that might be a part of the reason for the large size). - What are some ways to pare down the size of the git repo if any? Thanks.