发布于 2013-01-04 17:12:30
我想你是在找git滤波器-分支
你得自己决定是否值得这么做.
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' HEADhttps://stackoverflow.com/questions/14161302
复制相似问题