Is there a way to change the email of my first commit?
Possible Duplicate:
How do I change the author of a commit in git?
I have push 5 commits but I want to change the author email adress I have push on the first commit.
Is that possible ?
I think you are looking for git filter-branch
You gotta decide for yourself if it's really worth the effort..
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
链接地址: http://www.djcxy.com/p/28498.html
上一篇: 如何从特定版本更改GIT中的提交作者
下一篇: 有没有办法改变我第一次提交的电子邮件?