DevOps

DevOps

如何修改 commit 中的邮箱?

官方给出了一个简单的解决方案,附上链接及脚本: https://help.github.com/en/github/using-git/changing-author-info #!/bin/sh git filter-branch --env-filter ' OLD_EMAIL="your-old-email@example.com" CORRECT_NAME="Your Correct Name" CORRECT_EMAIL="your-correct-email@example.com" if [ "$GIT_