跳至内容
贾京南的个人博客
返回

如何彻底删除 Git 历史中的大文件或敏感文件

git-filter-repo

Install it

python3 -m pip install --user git-filter-repo

Source: https://superuser.com/questions/1563034/how-do-you-install-git-filter-repo

How to use it?

  1. cd YOUR_REPOSITORY
  2. git filter-repo —analyze # analyze big files, you will see the report in .git/filter-repo/analyze/
  3. git filter-repo —invert-paths —path FILE_NAME1 —path FILE_NAME2

Reference:


分享此文:

上一篇
自动调参算法
下一篇
点云