开发者

Do repository sizes increase within time and revisions?

开发者 https://www.devze.com 2023-01-12 19:45 出处:网络
All source code hosting services have size limits. I am wondering that does that mean my files can be up to that size -- or that the repository is limited to that size? Say I have 5 files of 100 kB, i

All source code hosting services have size limits. I am wondering that does that mean my files can be up to that size -- or that the repository is limited to that size? Say I have 5 files of 100 kB, if I keep changing them and committing, will the repo开发者_StackOverflow社区 size get larger?

For example, Github.com smallest plan has a limit of 0.30 GB, and my project is 50 MB in size -- will I exceed this limit with a lot of revisions?


The repo size gets larger with every commit. But git compresses new files. Your repo does not grow 100kb with a new or changed 100kB file.

I've got a repo with >4000 revisions - it's still smaller than the content itself. 200MB Repo, 250MB files.


There's no reason for a hosting provider to limit the size of your files (unless you are talking about terabyte-sized monsters). So basically they are talking about the overall size of the repository.

The repo consists of your files and metadata. The way they are stored internally differs for each SCM type.

For example, Github.com smallest plan has a limit of 0.30 GB, and my project is 50 MB in size -- will I exceed this limit with a lot of revisions?

In fact yes, eventually you will exceed the limit. But Git does its best to store the data as effectively as possible, so it won't happen too early, unless you change the whole project content on each commit.

0

精彩评论

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