为什么我无法压缩我的 git 存储库?
我在 32 位环境的 windows7 上使用 msysGit。我对 git 很陌生,所以我不知道我还需要在这里解释什么来提供帮助。我可以告诉你的一件事是这个存储库是我的 svn 存储库的 git 克隆
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我在 32 位环境的 windows7 上使用 msysGit。我对 git 很陌生,所以我不知道我还需要在这里解释什么来提供帮助。我可以告诉你的一件事是这个存储库是我的 svn 存储库的 git 克隆
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
看起来您遇到了与以下相同的问题:重新打包 Git 存储库失败
他们建议运行:
Looks like you are experiencing the same issue as: Repack of Git repository fails
They suggest running:
您使用什么版本的 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.您的视频几乎肯定是经过(有损)压缩的 - 那么就无法节省超过 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)