Team work with github/ git flow
- github에서 new organaization을 만들고 팀원 초대.
- new organazation 안에 new repo 생성.(new project) + develop branch 만들기
- fork해서 내 git repo(remote)로 가져오고
$ git clone <내 repo 주소>
해서 local로도 가져오기 $git flow init
으로 git flow 시작- develop branch에서
$ git flow feature start <name>
명령으로 작업시작 - 작업 후 add, commit (필요한 만큼)
$ git flow feature finish <name>
으로 develop branch 에 자동 merge 시키기$ git puush origin develop
으로 내 remote로 밀어내기- 팀 레포에 pull request로 merge 요청
$ git remote add upstream <팀 repo 주소>
로 remote 등록해놓고 중간중간 $ git pull upstream develop
해서 팀 repo의 최신상태 가져오기
release
- 모든 변경사항이 팀 git, develop branch에 모이면 release를 할 준비가 되었다.
- 팀 git develop branch에서
$git flow release start v0.1
로 release 준비. - `$git flow release finish v0.1``을 하면 자동으로 main branch에 merge가 되고 v0.1 branch는 사라진다.
- 그 과정에서 tag와 commit message를 남기면 된다.
$ git push``` 로 github으로 밀어내주고 ```$git push --tag
로 tag도 github으로 밀어낸다.
참고 블로그 : Git Flow - 2. 샘플 프로젝트를 통한 사용법 예시 (How to/Tutorial) - Dev Blog by Jin (jinwoo1990.github.io)
'Study Output for Myself > Git' 카테고리의 다른 글
[git]remote (0) | 2022.08.19 |
---|---|
[Git]code review를 위한 pull request (0) | 2022.07.15 |
[Git]git flow (0) | 2022.07.07 |
[Git]HEAD detached from (마지막 commit이 적용이 안되는 문제) (0) | 2022.06.30 |
[Git]commit version 삭제 (0) | 2022.06.27 |