A versatile tool for rewriting Git history. See also:
bfg
. More information: https://github.com/newren/git-filter-repo.
git filter-repo --replace-text <(echo 'find==>replacement')
git filter-repo --path path/to/folder
git filter-repo --path path/to/folder --invert-paths
git filter-repo --path-rename path/to/folder/: