You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can attribute a commit to more than one author by adding one or more `Co-authored-by` trailers
6
+
to the commit's message. Co-authored commits are visible on GitHub.
7
+
8
+
## When to add co-authors to a commit?
9
+
10
+
Annotating commits with co-authors is required when:
11
+
12
+
- You are about to commit previously-untracked code written by other users.
13
+
- Example:
14
+
1. User A develops a new feature and submits it as a PR.
15
+
2. User B is tasked with refactoring the PR from User A into multiple PRs.
16
+
3. User B copy-paste code written by User A and adapt it.
17
+
4. User B adds User A as a co-author when the commits include code written by User A.
18
+
19
+
## Adding co-authors to a commit
20
+
21
+
Follow the instructions described [here](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors).
22
+
23
+
Preview of the commit creation:
24
+
25
+
```
26
+
$ git commit -m "Refactor usability tests.
27
+
>
28
+
>
29
+
Co-authored-by: NAME <EMAIL>
30
+
Co-authored-by: ANOTHER-NAME <ANOTHER-EMAIL>"
31
+
```
32
+
33
+
## Names and emails of Sage Monorepo contributors
34
+
35
+
The name and "no-reply" emails of the Sage Monorepo contributors (sorted alphabetically):
0 commit comments