摘要: 参考:README 安装 下载链接:https://gitee.com/oschina/git-repo-clean/releases/ 解压后,即可看到二进制程序:git-repo-clean,复制到需要清理的仓库中。 使用 查看大文件 ./git-repo-clean --verbose --s 阅读全文
posted @ 2023-10-30 16:23 武平宁 阅读(863) 评论(0) 推荐(0)
摘要: # 清理前查看 git log git rev-list --objects --all # 创建新分支,保留文件 git checkout --orphan new git add . git commit -m "new" # 删除原来 master 分支 git branch -D maste 阅读全文
posted @ 2023-10-30 16:01 武平宁 阅读(165) 评论(0) 推荐(0)