开发者

Why can't I compress my git repository?

I'm using msysGit on windows7 in a 32bit environment. I'm really new to git s开发者_JS百科o 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

Why can't I compress my git repository?


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


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.


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)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜