How can I rebase a commit made by another author without adding myself as the committer?

后端 未结 2 727
南旧
南旧 2021-02-02 09:24

Normally, when you rebase another author\'s commit with git, git adds a Commit: header with your name and email address. I have a situation where I don\'t want this

2条回答
  •  清酒与你
    2021-02-02 09:52

    Try setting the environment variable GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL when rebasing (maybe also GIT_COMMITTER_DATE, too). (This will effect all commits created now, though.)

提交回复
热议问题