GitHub, key, API key, 敏感資料, git filter-repo, git filter-branch, 移除敏感資 料, 資訊安全, git repository, BFG, 敏感信息, GitHub 安全, git remote, git push force, 數據清理, git歷史重寫
我看最近搜尋到到的資料都是使用git filter-branch 去處理
可是官方網站上面就有這樣一則Warning 且推薦了其他方法
WARNING
git filter-branch has a plethora of pitfalls that can produce non-obvious manglings of the intended history rewrite (and can leave you with little time to investigate such problems since it has such abysmal performance). These safety and performance issues cannot be backward compatibly fixed and as such, its use is not recommended. Please use an alternative history filtering tool such as git filter-repo. If you still need to use git filter-branch, please carefully read SAFETY (and PERFORMANCE) to learn about the land mines of filter-branch, and then vigilantly avoid as many of the hazards listed there as reasonably possible.
github官方教學從git中移除敏感資料