How can I configure git to reject large files?

6,280

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

Share:
6,280

Related videos on Youtube

MiniQuark
Author by

MiniQuark

Updated on September 18, 2022

Comments

  • MiniQuark
    MiniQuark over 1 year

    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.