How to attribute a single commit to multiple developers?

Commit title

Commit body

Co-authored-by: name <[email protected]>
Co-authored-by: name <[email protected]>

One problem with this approach is that you can’t create a signed key for this group of devs, so you could essentially add anybody to this list even if they didn’t work on a feature and GitHub would treat it as if they did. However, this shouldn’t be an issue in most cases.

e.g. Co-authored-by: Linus Torvalds <[email protected]>

With normal authors or signing groups (the old method) you would see it’s not signed and know that you can’t trust the commit. However, there is no signing process on co-authors.


Mostly outdated answer:

One solution would be to set a name for the pair:

git config user.name "Chris Wilson and John Smith"

Here is a related bug report with other temporary solutions:

Bug git-core: Git should support multiple authors for a commit

Leave a Comment