Creating a commit with multiple authors
Add one or more Co-authored-by trailers to a commit message to attribute a commit to multiple authors.
Required co-author information
Before adding a co-author, get the email address they want used in the trailer. For the commit to count as a contribution, use an email address associated with their account on GitHub Enterprise Server 인스턴스.
If a co-author keeps their email address private, use their GitHub-provided no-reply email. See 커밋 메일 주소 설정.
Creating co-authored commits using GitHub Desktop
You can use GitHub Desktop to create a commit with a co-author. See GitHub Desktop에서 프로젝트 변경 내용 커밋 및 검토 and GitHub Desktop.
Creating co-authored commits on the command line
-
각 공동 작성자의 이름 및 메일 주소를 수집합니다.
-
Type your commit message and a short, meaningful description of your changes. After your commit description, add an empty line instead of a closing quotation mark.
$ git commit -m "Refactor usability tests. > > -
Add one
Co-authored-by: name <name@example.com>line for each co-author, then add the closing quotation mark.$ git commit -m "Refactor usability tests. > > Co-authored-by: NAME <NAME@EXAMPLE.COM> > Co-authored-by: ANOTHER-NAME <ANOTHER-NAME@EXAMPLE.COM>"
The new commit and message appear on GitHub Enterprise Server 인스턴스 after you push. See 원격 리포지토리에 커밋 전송.
Creating co-authored commits on GitHub
After you make changes in a file using the web editor on GitHub, add co-author trailers before you commit.
- 각 공동 작성자의 이름 및 메일 주소를 수집합니다.
- Click Commit changes...
- In the "Commit message" field, type a short, meaningful commit message that describes the changes you made.
- In the text box below your commit message, add one
Co-authored-by: name <name@example.com>line for each co-author. - Click Commit changes or Propose changes.
The new commit and message appear on GitHub Enterprise Server 인스턴스.
Creating a commit on behalf of an organization
참고
Creating a commit on behalf of an organization is not available on GitHub Enterprise Server.
Add an on-behalf-of: trailer to a signed commit to attribute it to an organization. To use the trailer, you must be a member of the organization, and both your commit email and the organization email must be in a domain verified by the organization.
Creating commits with an on-behalf-of badge on the command line
-
Type your commit message and a short, meaningful description of your changes. After your commit description, add two empty lines instead of a closing quotation mark.
$ git commit -m "Refactor usability tests. > > -
Add
on-behalf-of: @org <name@organization.com>, then add the closing quotation mark.$ git commit -m "Refactor usability tests. > > on-behalf-of: @ORG NAME@ORGANIZATION.COM"
The new commit, message, and badge appear on GitHub after you push. See 원격 리포지토리에 커밋 전송.
Creating commits with an on-behalf-of badge on GitHub
After you make changes in a file using the web editor on GitHub, add the organization trailer before you commit.
- Click Commit changes...
- In the "Commit message" field, type a short, meaningful commit message that describes the changes you made.
- In the text box below your commit message, add
on-behalf-of: @org <name@organization.com>. - Click Commit changes or Propose changes.
The new commit, message, and badge appear on GitHub.
Further reading
- 프로필에서 기여 보기
- 누락된 기여 문제 해결
- 프로젝트의 기여자 보기
- Changing a commit message
- GitHub Desktop에서 프로젝트 변경 내용 커밋 및 검토 in the GitHub Desktop documentation