之前有一次提交不小心把pyinstaller导出的结果提交到仓库里了,导致现在仓库很大。看看有没有办法把这个问题解决一下。
已解决,仓库大小从一百多MB缩小到2MB以内。大致步骤如下:
# 不知道哪个文件大,查找路径 git rev-list --objects --all | \ git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' | \ grep '^blob' | \ sort -k3 -n -r | \ head -n 20 # 删除对应路径 git filter-repo --path client --invert-paths git filter-repo --path server --invert-paths # 提交 git push origin --force --all git push origin --force --tags
但是现在gitea网页上显示的大小还是很大,实际上仓库clone下来已经变小了
No due date set.
This issue currently doesn't have any dependencies.
Deleting a branch is permanent. It CANNOT be undone. Continue?
之前有一次提交不小心把pyinstaller导出的结果提交到仓库里了,导致现在仓库很大。看看有没有办法把这个问题解决一下。
已解决,仓库大小从一百多MB缩小到2MB以内。大致步骤如下:
但是现在gitea网页上显示的大小还是很大,实际上仓库clone下来已经变小了