git filter-branch -f --env-filter '
if [ "$GIT_AUTHOR_EMAIL" = "旧@qq.com" ]; then
export GIT_AUTHOR_EMAIL="新@gmail.com";
fi
if [ "$GIT_COMMITTER_EMAIL" = "旧@qq.com" ]; then
export GIT_COMMITTER_EMAIL="新@gmail.com";
fi
if [ "$GIT_AUTHOR_NAME" = "旧名字" ]; then
export GIT_AUTHOR_NAME="新名字";
fi
if [ "$GIT_COMMITTER_NAME" = "旧名字" ]; then
export GIT_COMMITTER_NAME="新名字";
fi
' --tag-name-filter cat -- --branches --tags
git push --force --tags origin 'refs/heads/*'