跳过正文

批量修改 Git 历史中的用户邮箱

·60 字·
技术随笔 Git
目录

批量修改 Git 仓库中的 commit author email

安装
#

安装 git-filter-repo

修改
#

[email protected] 修改为 [email protected]

git filter-repo --email-callback 'return email if email != b"[email protected]"else b"[email protected]"'

注意
#

修改后需要强制推送才能修改远程仓库 git push -f

Sakari
作者
Sakari
A little bit about you

相关文章

作为 github-actions[bot] 进行 commit
·37 字
技术随笔 Linux Git
使 nemo 可以显示 WebP 缩略图
·4 字
技术随笔 Linux
在 Arch Linux 上使用 LaTeX 需要安装的包
·8 字
技术随笔 Linux