Sourcetree의 Git Flow를 사용한 개발 흐름
5484 단어 GitflowSourceTreeGitHubGit
Sourcetree의 Git Flow를 사용한 개발 흐름을 정리했습니다.
실현하고 싶은 것
기능에서 개발로 Pull Request 검토
Sourcetree에 Git Flow가 표시되지 않는 경우


개발 흐름
리포지토리 초기화
처음으로 Git Flow 버튼을 누르면 리포지토리 초기화 화면이 나타납니다.
운영 규칙에 맞게 사용자 정의할 수 있습니다.
기본적으로 기본 설정으로 남아있어 괜찮습니다.

기능 개발 개시
Git Flow 버튼을 누르면 권장 동작이 표시됩니다.
개발 착수시에는 [새 기능 시작]을 클릭합니다.

기능 이름을 입력하고 OK를 누르면 develop에서 기능이 생성됩니다.

이 경우 feature/sample이 작성됩니다.

리뷰
구현이 완료되면 feature를 푸시하여 Github에서 끌어오기 요청을 만듭니다.


검토가 완료되면 Github에서 병합합니다.

다음 단계에서 자동으로 분기가 삭제되므로 여기에서는 분기를 삭제할 필요가 없습니다.
기능 개발 종료
Git Flow 버튼을 누르고 현재 브랜치 종료 버튼을 클릭합니다.

브랜치 삭제를 선택한 상태에서 확인을 클릭하면 로컬 및 원격 브랜치가 자동으로 삭제됩니다.

마지막으로 develop에서 소스 코드를 pull합니다.
이 때 '병합이 아닌 리베이스'를 선택하십시오.

feature 의 변경 내용은 모두 develop 에 캡쳐되고 있으므로, 히스토리는 이렇게 됩니다.

출시
Git Flow 버튼을 누르고 새 릴리스 시작을 클릭합니다.

릴리스 버전을 입력하고 OK를 누르면 develop에서 release가 생성됩니다.


릴리스 작업이 완료되면 Git Flow 버튼을 누르고 현재 브랜치 종료를 클릭합니다.

태그 메시지를 입력하고 분기 미리보기를 확인합니다.

문제가 없는지 확인하고 OK를 누르면 release가 master, develop 모두에 병합됩니다.
feature 때와 마찬가지로 Github에서 병합하는 것도 가능합니다.

요약
참고 기사
A successful Git branching model
Reference
이 문제에 관하여(Sourcetree의 Git Flow를 사용한 개발 흐름), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/wootan/items/7649c00ac5e328b0d17d
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(Sourcetree의 Git Flow를 사용한 개발 흐름), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/wootan/items/7649c00ac5e328b0d17d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)