Skip to content

Mark file as someone else's contribution #23367

Answered by shrink
Liebranca asked this question in New to GitHub
Discussion options

You must be logged in to vote

A commit is assigned to an author based on the commit metadata, therefore you could create a commit for another user by changing the metadata. However, it’s generally bad practice to create commits on behalf of someone else. Fortunately, GitHub supports the concept of “co-authors” which are displayed alongside the actual commit author – therefore, you can commit the changes yourself and identify that the content came from another user.

If you’re using the GitHub website to create commits then you can add the co-author trailer to your commit extended description, e.g:

Co-authored-by: Alice <alice@example.com>

A full outline of how to achieve this (on GitHub Desktop, via the command line a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants