git filter-repo

A versatile tool for rewriting Git history.
See also: `bfg`.
More information.
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/:}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY