Note that filter-repo deletes remote section in .git\config
git filter-repo --mailmap mymailmap --forceor
git-filter-repo --name-callback 'return name.replace(b"<OLD NAME>", b"<NEW NAME>")'git filter-branch -f --commit-filter 'git commit-tree -S "$@";' -- --allor
This option is for signing all commits for specific author name
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "<AUTHOR>" ];
then
git commit-tree -S "$@";
fi' -- --allgit for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
git reflog expire --expire=now --all
git gc --prune=nowgit push --force --tags origin 'refs/heads/*'
git-filter-repo removes the link to origin so the push at end will not work. To restore it you need