Skip to main content

amandabytes

Tag: Git

Removing sensitive data from commit history

Today, I learned something extremely useful: how to efficiently remove sensitive information from commit history.

At some point, many of us make the mistake of accidentally pushing sensitive information to a GitHub repository. Simply deleting the information from the current repository does not solve the problem, as the commit history will still show the previous version with that information.

To address this issue, many turn to git-filter-branch. However, I want to introduce an even better alternative: BFG.