Skip to content

Instantly share code, notes, and snippets.

@ABODY9996484
ABODY9996484 / git-filter-repo.md
Created June 23, 2025 11:28 — forked from Boggin/git-filter-repo.md
Using git-filter-repo to rewrite history and remove secrets

Removing Secrets In Your Git Repository

If you have a code-base under source control that is internal to your company, for instance, it's hosted on premises, you may have checked in some secrets in your configuration files. We all know we should have had those encrypted or kept outside of the checked-in source in some way but perhaps it was just better to accrue some technical debt and worry about it later. Okay, now it's later.

git-filter-repo