2

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

Kirill
  • 5,080
  • 2
  • 38
  • 68

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
  • 67,326
  • 35
  • 140
  • 172
  • 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