git-filter-repo
A versatile tool for rewriting Git history. tldr-pages
On several platforms
Several platforms
Replace a sensitive string in all files
git filter-repo --replace-text <(echo 'find==>replacement')IdentifyExtract a single folder, keeping history
git filter-repo --path path/to/folderIdentifyRemove a single folder, keeping history
git filter-repo --path path/to/folder --invert-pathsIdentifyMove everything from sub-folder one level up
git filter-repo --path-rename path/to/folder/:Identify