开发者

Max file size and max repository size in Git?

I'm 开发者_开发技巧looking to have Git as the primary source control for my employer (250 people) company. Before proceeding further I would like to have answers to the following questions.

  1. Does Git have any specific max file size limit that it can handle? If so, what is it?

  2. What is the max repository size recommended by Git? This would help me determine the housekeeping I should set on the repository.


As mentioned in Git limits, Git has no file size or file number limit per se.
But it:

  • Won't manage large files too well (which is why a project like Git-BigFiles exists)
  • Tag every file within its repository, which is why, if you have many different sets of files which each have their own development life-cycle, it is better to use several Git repositories anyway (see true nature of submodules).
    That approach is more suited to a component-driven development, and is quite different from the SVN external.


Rule of thumb: 1GB per repository, 100MB per file

For best performance, github recommend repositories be kept under 1GB each. This limit is easy to stay within if large files (typically, binaries) are kept out of the repository. If your repository exceeds 1GB, you might receive a polite email from support requesting that you reduce the size of the repository to bring it back down under 1GB.

In addition, we place a strict limit of files exceeding 100 MB in size. For more information on why this is, see our article on working with large files.

Look at: Managing Large Files / What is my disk quota? (it refers to both GitHub and Git capabilities.)


As of 2018-04-20 Git for Windows has a bug which effectively limits the file size to 4GB max using that particular implementation (this bug propagates to lfs as well).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜