How do I rewrite committer names in a git repository?
This question already has an answer here:
ProGit书中有一个例子可以解决这个问题。
$ git filter-branch --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "schacon@localhost" ];
then
GIT_AUTHOR_NAME="Scott Chacon";
GIT_AUTHOR_EMAIL="schacon@example.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
链接地址: http://www.djcxy.com/p/28486.html
上一篇: Git仓库提交中的名称?
下一篇: 我如何重写git仓库中的提交者名称?