GitNotes.49-1.md
본 문서는 Git Notes for Professionals (라이센스:CC-BY-SA) 를 한글로 번역한 문서입니다. 번역상 오류가 있을 수 있으므로 정확한 내용은 원본 문서를 참고하세요.

Section 49.1: Gmail 계정을 통해 git send-email 사용하기

배경설명: 리눅스 커널과 같은 프로젝트에 참여하고자 하는 경우, 커밋을 제출하고 리뷰를 받는 작업은 Pull request 를 생성하는 등의 과정을 거치는 것이 아닌, listserv 에 메일을 보내는 작업을 통해 이루어진다. 이 섹션에서는 Gmail 을 이용하여 git-send email 을 사용하는 방법을 설명한다.

아래의 내용을 사용자의 .gitconfig 파일에 추가한다:

[sendemail] smtpserver = smtp.googlemail.com smtpencryption = tls smtpserverport = 587 smtpuser = name@gmail.com

그런 이후, 웹 브라우저에서 다음과 같이 실행한다: Google 접속 -> My Account -> Connected Apps & Sites -> Allow less secure apps -> Switch ON

패치셋을 생성하려면 다음과 같이 수행한다:

git format-patch HEAD~~~~ --subject-prefix="PATCH <project-name>"

그런 후, 패치들을 listserv 로 발송한다:

git send-email --annotate --to project-developers-list@listserve.example.com 00*.patch

해당 패치의 업데이트된 버전을 (이 예제에서는 version 2) 생성하고 발송하려면 아래와 같이 수행한다:

git format-patch -v 2 HEAD~~~~ ...... git send-email --to project-developers-list@listserve.example.com v2-00*.patch

[출처] https://books.goalkicker.com/GitBook/ (CC BY-SA)

반응형

+ Recent posts