본문 바로가기
OpenSource

Github multiple authors

by egas 2021. 7. 17.

github에서 github multiple authors를 사용해서 여러명이 기여했다는것을 명시 할 수 있다. 아직, vscode live share도 여러 사람이 같이 코딩을 해도 정작 커밋을 하면 한사람 밖에 반영이 안되기때문에 더더욱 github multiple authors 기능은 유용하다.

방법

commit 메세지 이후 개행 2번을 한뒤에 아래와 같은 형식에 맞춰서 작성하면 PR에 여러명 기여로 표시가 된다!

git commit -m "commit message


Co-authored-by: hochan222 <hochan049@gmail.com>"

 

이메일을 비공개로 유지하고 싶을 때는 아래와 같이 작성할 수 있다.

Co-authored-by: hochan222 <hochan222@users.noreply.github.com>

 

해당 세부 내용은 아래 링크를 참고하자.

 

https://docs.github.com/en/github/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors

 

Creating a commit with multiple authors - GitHub Docs

Before you can add a co-author to a commit, you must know the appropriate email to use for each co-author. For the co-author's commit to count as a contribution, you must use the email associated with their GitHub account. If a person chooses to keep their

docs.github.com

https://docs.github.com/ko/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address

 

728x90

'OpenSource' 카테고리의 다른 글

ripgrep 소개  (0) 2021.07.30
gource 소개  (0) 2021.07.28
Github changelogs  (0) 2021.07.18
gh-pages 로 배포하기  (0) 2021.07.17
gpg를 설정 해보자! (github verified)  (0) 2021.05.13

댓글