Sometimes developers may accidentally add secrets or other sensitive information into files to git repositories (and in some cases, the entire file contains secrets which should be removed). This document describes the steps to perform to ensure that these secrets can be masked going back through the git history
To mask secrets in files, we will use git-filter-repo
package. In Macbook, this can be installed via the following command:
$ brew install git-filter-repo