본문 바로가기
Language/Git

Git | git flow

by 히욤 2021. 9. 28.

수업 자료

https://github.com/ulgoon/nklcb-git

 

GitHub - ulgoon/nklcb-git

Contribute to ulgoon/nklcb-git development by creating an account on GitHub.

github.com

 

오늘 수업

https://github.com/ulgoon/nklcb-git/blob/main/handouts/git(3).md 

 

GitHub - ulgoon/nklcb-git

Contribute to ulgoon/nklcb-git development by creating an account on GitHub.

github.com

다른사람이 봤을 때 보기 편할 단위를 기준으로 커밋하기

 

 

git-flow cheatsheet

https://danielkummer.github.io/git-flow-cheatsheet/index.ko_KR.html

 

git-flow cheatsheet

 

danielkummer.github.io

 

 

git flow 사용법

 

https://hbase.tistory.com/60

 

[Git] git-flow 소개, 설치 및 사용법

하나의 소스코드로 여러명의 개발자들이 협업을 하게 되면서 소스코드의 버전 관리 시스템의 중요성이 매우 높아졌다. 과거에는 SVN, CVS 같은 소프트웨어들도 많이 사용되었지만 최근에는 거의

hbase.tistory.com

 


 

팀장

 

릴리즈 시작

develop이 최신화 되어있어야함.

git flow release start v1.0

릴리즈 이전에 확인 작업들 완료한 다음 닫기

git flow release finish
// 이후 3번의 commit이 발생
// 2번째 tag단계가 중요하다.

그렇게 되면 main으로 merge되다.

 

릴리즈 한 태그를 확인해준다

git tag
git push --tags // 릴리즈 안된 태그가 있다면 푸쉬

 

 

팀원

  • fork한 레포 따오기 
git clone {fork한 깃 주소}

 

  • upstream 깃 주소와 내 로컬 디스크를 연결시키기
cd {document}
git remote add upstream {upstream 깃 주소}

 

  • 자기 레포에 초기 설정
git flow init

 

  • upstream 확인하기
git remote -v

 

 

  • upstream의 develop 브랜치 따오기/ 최신화
git pull upstream develop

 

 

  • 새로운 flow 브랜치 생성해서 시작
git flow feature start branchname
// 작업 진행 후
git add
git commit

 

 

 

  • feature 삭제하고, develop에 병합한다. 그 후 develop 브랜치로 전환함. (add, commit 한 다음에...)
git flow feature finish branchname
git push origin develop

 

  • 나의 깃에서 pull request 날리기

 

 

  • 브랜치 확인
git branch

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

'Language > Git' 카테고리의 다른 글

[Git] git을 이용한 버전 관리  (0) 2021.07.06