Limiting file size in git repository

前端 未结 11 1525
星月不相逢
星月不相逢 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:05

    This is going to be a very rare case from what I have seen when some one checks in, say a 200Mb or even more size file.

    While you can prevent this from happening by using server side hooks ( not sure about client side hooks since you have to rely on the person having the hooks installed ) much like how you would in SVN, you also have to take into account that in Git, it is much much easier to remove such a file / commit from the repository. You did not have such a luxury in SVN, atleast not an easy way.

提交回复
热议问题