批量修改 Git 仓库中的 commit author email
安装#
修改#
将 E1@example.com
修改为 E2@example.com
git filter-repo --email-callback 'return email if email != b"E1@example.com"else b"E2@example.com"'
注意#
修改后需要强制推送才能修改远程仓库 git push -f
批量修改 Git 仓库中的 commit author email
将 E1@example.com
修改为 E2@example.com
git filter-repo --email-callback 'return email if email != b"E1@example.com"else b"E2@example.com"'
修改后需要强制推送才能修改远程仓库 git push -f