I\'m currently thinking of changing my VCS (from subversion) to git. Is it possible to limit the file size within a commit in a git repository? For e. g. subversion there is
if you are using gitolite you can also try VREF. There is one VREF already provided by default (the code is in gitolite/src/VREF/MAX_NEWBIN_SIZE). It is called MAX_NEWBIN_SIZE. It works like this:
repo name
RW+ = username
- VREF/MAX_NEWBIN_SIZE/1000 = usernames
Where 1000 is example threshold in Bytes.
This VREF works like a update hook and it will reject your push if one file you are to push is greater than the threshold.