Search code examples
gitgitolite

How to restrict push size in Git


I have gitolite-admin.

Some times our programmers don't use .gitignore file and commit whole directory to the remote repo.

How can I restrict push size in git?

I tried search in git config but unsuccessfully.


Solution

  • You can limit by changed files amount. In your config file:

    repo @all
        -   VREF/COUNT/50   = @all