Tip: How to add multiple authors to a commit
You can add multiple authors to a git commit, by adding one or more
Co-authored-by trailers to the commit's message:
$ git commit -m "Refactor usability tests. > > Co-authored-by: name <firstname.lastname@example.org> Co-authored-by: another-name <email@example.com>"
- To correctly attribute a commit to a co-author, you must use the email associated with their GitHub account.
- If a person's email is private, you can use their GitHub-provided
- Leave one or preferably two empty lines before any
Recommended snippets & collections
- Snippet collection
A collection of quick tips and tricks to level up your coding skills one step at a time.
Ever needed to create a git commit with a different date? Here's a quick and easy way to do it.
Increase your productivity by creating aliases for many common git operations.
Accessibility (a11y) can improve your website and attract new users. Learn how to get started with these 8 quick tips.