让Git消耗更少的磁盘空间? [英] Make Git consume less disk space?

查看:424
本文介绍了让Git消耗更少的磁盘空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git消耗更少磁盘空间的最佳方式是什么?



我在我的存储库上使用git-gc(这有帮助,特别是如果有自克隆以来,它已经提交了许多提交),但是如果有其他任何缩小git使用的磁盘空间的命令,我都会建议您使用它。

$ b

解决方案

git-gc调用大量用于清理和压缩存储库的其他命令。所有你能做的就是删除一些旧的未使用的分支。



简短回答:否: - (


What is the best way for git to consume less disk space?

I'm using git-gc on my repositories (which does help, especially if there have been many commits since it was cloned) but I would like suggestions if there is any other command to shrink the disk space used by git.

Thanks

解决方案

git-gc calls lots of other commands that are used to clean up and compress the repository. All you could do is delete some old unused branches.

Short answer: No :-(

这篇关于让Git消耗更少的磁盘空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆