Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What would a git commit look like when two distinct programmers have inputted characters into the file?


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>`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: