GitFlow에 존재하는 5가지 종류의 브랜치
upstream/feature-user 브랜치에서 작업 브랜치(brf-100_login_layout) 생성
(feature-user)$ git fetch upstream
(feature-user)]$ git checkout -b bfm-100_login_layout –track upstream/feature-user
작업 브랜치에서 소스코드 수정
작업 브랜치에서 변경사항 커밋
(bfm-100_login_layout)]$ git commit -m "BFM-100 로그인 화면 레이아웃 생성"
불필요하게 커밋이 여러 개로 나뉘어져 있다면 squash 진행
(bfm-100_login_layout)]$ git rebase -i HEAD~2
작업 브랜치를 upstream/feature-user에 rebase 하기
(bfm-100_login_layout)]$ git pull –rebase upstream feature-user
작업 브랜치를 origin에 push 하기
(bfm-100_login_layout)]$ git push origin bfm-100_login_layout
Github에서 bfm-100_login_layout 브랜치를 feature-user에 merge하는 Pull Request를 생성합니다.
같은 feature를 개발하는 동료에게 리뷰 승인을 받은 후 Pull Request merge