4

For the 3rd time a developer committed a large file in our git repository (over 100MB). It's really a pain to cleanup. How can I configure git and/or gitolite to prevent large files from ever being committed into the repo?

Thanks a lot.

MiniQuark
  • 3,695
  • 2
  • 20
  • 23

1 Answers1

4

You can use hooks to accomplish this. It has been discussed on stackoverflow. https://stackoverflow.com/questions/7147699/limiting-file-size-in-git-repository

samuelkf
  • 383
  • 3
  • 8
  • Although when it's one given developer who's the problem, I'd be inclined to revoke push privileges from that one... – Jenny D Mar 25 '13 at 11:27