How to anonymize commits in Git
Tuesday, March 24, 2026
Anonymizing Git commits is useful when open-sourcing an internal project, when contributors want to remove personal information, or when team members need to be credited under pseudonyms.
As the creator of CoreUI with 25 years of open-source development experience, I’ve helped contributors anonymize their history before submitting patches to public repositories.
The most flexible approach is git filter-repo with an email or commit callback that replaces names and emails according to a mapping.
This rewrites all matching commits permanently and requires force-pushing to update the remote.