Git - Solution to huge git object folder
如果你的disk space 不够大,而你又有一个巨大的object folder 在 .git 文件夹下你可以使用以下办法:
A.
1. git fsck
list all unreachable blobs
2. git prune
delete unreachable blobs
或者
B.
1. git reflog expire --expire=now
2. git repack -ad
remove dangling files from pack files
3. git prune
或者
C.
git gc --aggressive --prune
或者
D.
删除一些old and huge files in object/pack 文件夹...
A.
1. git fsck
list all unreachable blobs
2. git prune
delete unreachable blobs
或者
B.
1. git reflog expire --expire=now
2. git repack -ad
remove dangling files from pack files
3. git prune
或者
C.
git gc --aggressive --prune
或者
D.
删除一些old and huge files in object/pack 文件夹...
评论
发表评论