2

Sometimes bad people push file in a SCM that have nothing to do here:

  • Test reports
  • Compiled file
  • Other SCM file
  • Cache

So git repositories (works also with SVN) can become fat, very fat. How can we make them lose this useless fat ? I've a git repo which is bigger than 1 GB, how can I keep the last 500 hundreds commits and drop the other useless data ?

I've read about using squashing but since this repo is used by a team I guess it's not the right way.

1 Answer 1

0

remove branches/tags that refer to the commit and then use git-gc

You must log in to answer this question.

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