Max file size and max repository size in Git?

前端 未结 3 800
独厮守ぢ
独厮守ぢ 2020-12-24 05:55

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 question

相关标签:
3条回答
  • 2020-12-24 05:59

    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 讨论(0)
  • 2020-12-24 06:10

    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.
    0 讨论(0)
  • 2020-12-24 06:18

    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.)

    0 讨论(0)
提交回复
热议问题