Hacker News new | ask | show | jobs
by zhughes3 3136 days ago
What would a git commit look like when two distinct programmers have inputted characters into the file?
1 comments

One common way to attribute multiple authors in a commit is to add a `Co-authored-by` commit message trailer. You can read more about git commit trailers at https://git-scm.com/docs/git-interpret-trailers.

As an example, if this was a commit message, the trailer adding my attribution would be like this:

`Co-authored-by: FirstName LastName <myemail@domain.com>`