作者在 2026-02-10 03:31:31 发布以下内容
sudo apt install git-filter-repo
# 删除单个文件
git filter-repo --invert-paths --path secret.txt
# 删除整个文件夹
git filter-repo --invert-paths --path logs/
# 压缩优化
git gc --aggressive --prune=now
git repack -a -d --depth=250 --window=250

