替换git提交者信息
修改代码提交者
git
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "37092006+xxx@users.noreply.github.com" ];
then
GIT_AUTHOR_NAME="zbf";
GIT_AUTHOR_EMAIL="zbfcqtl@gmail.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
修改实际提交者
git
git filter-branch -f --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "37092006+xxx@users.noreply.github.com" ];
then
GIT_COMMITTER_NAME="zbf";
GIT_COMMITTER_EMAIL="zbfcqtl@gmail.com";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
执行git commit
的人