git庫瘦身

因誤傳字體文件,致使git代碼倉庫膨脹,使用以下命令解決git

git filter-branch --tree-filter 'rm -f src/main/webapp/resource/templates/simsun.ttc' HEAD --all
rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now
git gc --aggressive --prune=now
相關文章
相關標籤/搜索