Limiting file size in git repository

前端 未结 11 1504
星月不相逢
星月不相逢 2020-12-02 14:55

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

11条回答
  •  星月不相逢
    2020-12-02 15:24

    Another way is to version a .gitignore, which will prevent any file with a certain extension to show up in the status.
    You still can have hooks as well (on downstream or upstream, as suggested by the other answers), but at least all downstream repo can include that .gitignore to avoid adding .exe, .dll, .iso, ...

提交回复
热议问题