BFG Repo Cleaner is both faster and easier to use than using git filter-branch. It handles simple use cases for editing sensitive information in git.
BFG is a .jar file that is invoked from the command line using java.
$ java -jar path/to/bfg.jar
Invoking BFG this way can become tedious...
To simplify it, consider creating an alias
... alias bfg='java -jar path/to/bfg.jar'
BFG is now invokable from the command line in any directory:
$ bfg ...