Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.