-
Notifications
You must be signed in to change notification settings - Fork 10
Pair Commits
Nate Bell edited this page Nov 19, 2023
·
1 revision
Sometimes you'll work on a feature by pairing with someone else. Creating pair commits would be the best way to demonstrate that both worked on it.
Here is how to do it :
First, you'll need the username & email adress used by your pair in their Github account.
After your commit description, instead of a closing quotation, add two empty lines :
$ git commit -m "Aol feature implementation.
>
>
On the next line of the commit message, type Co-authored-by: name <name@example.com>
with specific information for each co-author. After the co-author information, add a closing quotation mark.
git commit -m "Aol feature implementation.
>
>
Co-authored-by: NAME <NAME@EXAMPLE.COM>"