为什么我无法压缩我的 git 存储库?

发布于 2024-12-03 16:42:32 字数 176 浏览 1 评论 0 原文

我在 32 位环境的 windows7 上使用 msysGit。我对 git 很陌生,所以我不知道我还需要在这里解释什么来提供帮助。我可以告诉你的一件事是这个存储库是我的 svn 存储库的 git 克隆

在此处输入图像描述

I'm using msysGit on windows7 in a 32bit environment. I'm really new to git so I don't know what else I would need to explain here to help. One thing I can tell you is this repo is a git clone from my svn repo

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

孤城病女 2024-12-10 16:42:32

看起来您遇到了与以下相同的问题:重新打包 Git 存储库失败

他们建议运行:

git config pack.windowMemory 10m
git config pack.packSizeLimit 20m

Looks like you are experiencing the same issue as: Repack of Git repository fails

They suggest running:

git config pack.windowMemory 10m
git config pack.packSizeLimit 20m
遗心遗梦遗幸福 2024-12-10 16:42:32

您使用什么版本的 Git?
看起来您可能已经发现了 msysgit 中普遍存在的存储库问题 > 2GB。

在 msysgit 问题跟踪器中找到了此内容。http://code.google .com/p/msysgit/issues/detail?id=194

另外,在.. 使用 git 管理大型二进制文件

建议尝试使用 git-submodule 用于较大的二进制文件文件。如果可能的话,我建议使用此策略。

What version of Git are you using?
Looks like you may have uncovered an issue prevalent in msysgit for repositories > 2 GB.

Found this in the msysgit issue tracker.. http://code.google.com/p/msysgit/issues/detail?id=194

Also, found some helpful information in.. Managing large binary files with git

Suggestions were to try using git-submodule for larger binary files. I recommend using this strategy if at all possible.

森罗 2024-12-10 16:42:32

您的视频几乎肯定是经过(有损)压缩的 - 那么就无法节省超过 5% 的时间。您应该从存储库中删除它并使用 smb/ftp/whatever 共享。请参阅:如何永久删除存储在 GIT 中的文件?

(对于类似文本的文件:git 在必要时会自行压缩旧文件)

Your video is almost certainly (lossy) compressed - then there is no way in saving more than say 5%. You should delete it from your repo and use an smb/ftp/whatever share instead. see: How to permanently delete a file stored in GIT?

(for text like files: git compresses old files itself when necessary)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文