Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.