Override author on git merge

后端 未结 4 1925
别跟我提以往
别跟我提以往 2021-02-12 13:56

Is there an option like --author of git-commit for git-merge?

We maintain a staging environment where some changes must be performed. Some limitations make us to use onl

4条回答
  •  你的背包
    2021-02-12 14:51

    First, prevent the merge from creating the commit:

    git merge --no-commit …
    

    Then, do the commit manually:

    git commit --author="A. U. Thor "
    

提交回复
热议问题