3

Is it possible to set committer to same person who is defined as author in patch when applying patch with git am command?

Kirill
  • 6,762
  • 4
  • 51
  • 81

1 Answers1

1

Yes, you could do that.

Simply use:

GIT_COMMITTER_NAME='committer name' GIT_COMMITTER_EMAIL='commiter@email.com' git commit -m "message"

In case you are amending a commit, use

GIT_COMMITTER_NAME='committer name' GIT_COMMITTER_EMAIL='commiter@email.com' git commit --amend

You can have a look at Difference between author and committer in Git to understand more about committer and author in git.

Community
  • 1
  • 1
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
  • 1
    Where should i put it? Commits are created with `git am`, i do not create them manually when apply patch – Kirill Nov 29 '16 at 12:47