Could I change my name and surname in all previous commits?

后端 未结 6 1198
春和景丽
春和景丽 2020-11-27 08:57

I would like to change my name, surname and email in my all commits, is it possible?

6条回答
  •  [愿得一人]
    2020-11-27 09:53

    If there are no other authors, you can do:

    git filter-branch --commit-filter 'export GIT_AUTHOR_NAME="authorname"; \
    export GIT_AUTHOR_EMAIL=mail@example.com; git commit-tree "$@"'
    

提交回复
热议问题