简体   繁体   English

为什么我的 GitLab 存储比我的文件大得多?

[英]Why is my GitLab storage significantly bigger then my files?

The total storage in gitlab is stacking with my files whenever i push/commit.每当我推送/提交时,gitlab 中的总存储量就会与我的文件堆叠在一起。 All the files (Including Hidden Folders) add up to around 20mb.所有文件(包括隐藏文件夹)总计约 20mb。 Whenever i commit/push 20 mb are added to the total storage.每当我提交/推送 20 MB 时,总存储量就会增加。 This started happening recently and I haven't changed anything.这最近开始发生,我没有改变任何东西。 Is there anything I could do to lower my storage usage and prevent this from happening again?我能做些什么来降低我的存储使用量并防止这种情况再次发生吗?

在此处输入图像描述

Any help is appreciated.任何帮助表示赞赏。

Thanks谢谢

git repositories are not just made up of the files being tracked by git, but all of the history, branches, tags, etc.. git存储库不仅由 git 跟踪的文件组成,还包括所有历史记录、分支、标签等。

All of the commits, all files added in the past and deleted later are all stored in the history.所有的提交,过去添加的所有文件和后来删除的所有文件都存储在历史记录中。 GitLab is telling you your actual files currently in your default branch take up 20.2MB, but the total size of the repository is 549.1MB. GitLab 告诉你当前默认分支中的实际文件占用 20.2MB,但存储库的总大小为 549.1MB。

For more information, check out Chapter 10 of Pro Git, Git Internals .有关详细信息,请查看 Pro Git、Git Internals的第 10 章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM