如何给 .git 文件夹瘦身?

ybwdaisy -
如何给 .git 文件夹瘦身?
如何给 .git 文件夹瘦身?

推荐工具:https://github.com/newren/git...

对工程进行分析
git-filter-repo --analyze
删除指定文件或文件夹,如:
git-filter-repo --path-glob 'android/*.hprof' --invert-paths --force
更新所有分支
git push origin --force --all 
更新所有 tag(如果有)
git push origin --force --tags
特别申明:本文内容来源网络,版权归原作者所有,如有侵权请立即与我们联系(cy198701067573@163.com),我们将及时处理。

Tags 标签

git

扩展阅读

加个好友,技术交流

1628738909466805.jpg