Merge pull request #21411 from DAmatheson/patch-1
Update creating-a-commit-with-multiple-authors.md
This commit is contained in:
@@ -43,7 +43,7 @@ You can use {% data variables.product.prodname_desktop %} to create a commit wit
|
||||
{% data reusables.pull_requests.collect-co-author-commit-git-config-info %}
|
||||
|
||||
1. Type your commit message and a short, meaningful description of your changes. After your commit description, instead of a closing quotation, add two empty lines.
|
||||
```shell
|
||||
```
|
||||
$ git commit -m "Refactor usability tests.
|
||||
>
|
||||
>
|
||||
@@ -57,12 +57,12 @@ You can use {% data variables.product.prodname_desktop %} to create a commit wit
|
||||
3. 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.
|
||||
|
||||
If you're adding multiple co-authors, give each co-author their own line and `Co-authored-by:` commit trailer.
|
||||
```shell
|
||||
```
|
||||
$ git commit -m "Refactor usability tests.
|
||||
>
|
||||
>
|
||||
Co-authored-by: NAME NAME@EXAMPLE.COM
|
||||
Co-authored-by: AUTHOR-NAME ANOTHER-NAME@EXAMPLE.COM"
|
||||
Co-authored-by: NAME <NAME@EXAMPLE.COM>
|
||||
Co-authored-by: AUTHOR-NAME <ANOTHER-NAME@EXAMPLE.COM>"
|
||||
```
|
||||
|
||||
The new commit and message will appear on {% data variables.location.product_location %} the next time you push. For more information, see "[Pushing changes to a remote repository](/github/getting-started-with-github/pushing-commits-to-a-remote-repository/)."
|
||||
|
||||
Reference in New Issue
Block a user