我正在使用下面的代码在git中更改作者和提交者的姓名和电子邮件。有用。事情是它只更新Master分支。如何在git中为1个repo再次运行此脚本。谢谢!
git filter-branch --env-filter
if [ "$GIT_COMMITTER_NAME" = "$OLD_NAME1" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME1"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL1"
fi
if [ "$GIT_AUTHOR_NAME" = "$OLD_NAME1" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME1"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL1"
fi