我使用GitLab社区版8.15.1 1119c1f,Git2.11(在我的PC上),Windows10pro x64。
我的Git存储库有超过15500次提交。运行后命令
git filter-branch --tree-filter 'rm -rf module_foo/deployment/lib' HEAD大约6个小时,
我试着
git push origin --force --all -v我试图减少Git存储库的大小(通过删除库中的*.jar文件),但是它变成了2x旧的。然后我看到(在GitLab web上) Git的大小从400 MB到800 MB,怎么了?
发布于 2017-01-12 02:02:20
我执行以下步骤,创建完全备份:
git clone --mirror http://example.com/git/foo.git
cd foo.git
git bundle create foo.bundle --all然后删除名为foo的存储库,然后
git push origin --force --all -v大小将与预期的一样(不要变成老尺寸的2倍)。
https://stackoverflow.com/questions/41603718
复制相似问题