2

I have, over the course of the last few days, removed several hundred megs of large text and binary files from a git repository that I had set up recently (I am relatively new to git).

I did this in order to reduce the amount of time it takes to clone this repository on a remote machine.

However, the repo itself is still huge, and it still takes forever to clone. I suspect that git is keeping some manifestation of the large files in order to maintain some history.

How might I remove these objects, to make my repository "lean and mean"?

Thanks!

1

2 Answers 2

4

You need to remove the history that contains those large files. See this blog post on the subject.

1
1

Please try following command.


git gc --aggressive

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .