1. 원본 저장소 Fork
2. Fork한 저장소를 로컬에 clone
3. 원본 저장소 remote 설정
쉽게 말해 원본 저장소에 내가 다룰 저장소를 설정하는 것
git remote add <remote 별명> <원본 저장소 url>
생성 후 git remote -v
로 원격 저장소 확인하기
4. branch 생성하기
브랜치 생성 : git branch <branch 이름>
브랜치 이동 : git checkout <branch 이름>
브랜치 생성 및 이동 : git checkout -b <branch 이름>
브랜치 리스트 : git branch
5. 코드 작업 후 commit과 push
git add .
git commit -m "커밋메세지"
git push <remote 별명> <branch 이름>
6. github 저장소 상단에서 Compare & pull request 버튼 클릭
7. 코드 리뷰 및 Merge pull request
8. merge가 되었다면 동기화 및 branch 삭제
git pull <remote 별명>
git branch -d <branch 이름>