跳到内容
观澜涉川 · 札记EN

从 Git 仓库历史中彻底删除文件

· 约 1 分钟阅读

Git 建议使用第三方的插件 git-filter-repo 修改 Git 仓库历史。

Terminal window
git filter-repo --invert-paths --path <path to the file or directory>