원격저장소를 복제하여 로컬저장소를 생성하고, 저장소 내부로 진입한다.
$ git clone https://github.com/sguys99/pr-koscom.git
$ cd pr-koscom
실습을 위한 브랜치를 feature/<깃허브 유저네임>-practice
라는 이름으로 만들고 전환한다.
$ git branch feature/<깃허브 유저네임>-practice
$ git checkout feature/<깃허브 유저네임>-practice
results
디렉토리 안에 깃허브 유저네임
으로 디렉토리를 만들고, 그 안에 실습을 진행할 src
폴더를 복사한다.
$ mkdir results/<깃허브 유저네임>
$ cp -r src results/<깃허브 유저네임>/src
초기 커밋을 진행한다.
$ git add .
$ git commit -m "initial commit"
중요 results/<깃허브 유저네임>/src/pr_practice.py
파일을 열어서, <NAME>
과 <EMAIL>
부분을 본인의 정보로 수정한다.
예시
print("My name is Hong gil-dong")
print("Please contact me at gd.hong@email.com")
수정 사항을 커밋한다.
$ git add .
$ git commit -m "Modify name and email in pr_practice.py"
$ git push -u origin feature/<깃허브 유저네임>-practice
원격 저장소에서 본인이 푸시한 브랜치 이름을 찾아서, Pull Request를 생성한다. (Assignee와 Reviewer도 지정)
Reviewer 승인 후 직접 Master 브랜치에 머지한다.