答案 0 :(得分:2)
我认为您正在寻找git filter-branch
你必须自己决定是否真的值得努力..
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "wrongemail@adress.com" ];
then
GIT_AUTHOR_NAME="Firstname NAME";
GIT_AUTHOR_EMAIL="email@adress.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD