1. #!/bin/sh
  2. #
  3. git filter-branch --force --env-filter '
  4. if [ "$GIT_COMMITTER_NAME" = "wangxiangqian" ];
  5. then
  6. GIT_COMMITTER_NAME="xiangqian";
  7. GIT_COMMITTER_EMAIL="175023117@qq.com";
  8. GIT_AUTHOR_NAME="xiangqian";
  9. GIT_AUTHOR_EMAIL="175023117@qq.com";
  10. fi' -- --all

参考