[GIT/GITHUB] git flow feature

자두·2021년 10월 3일
0

GIT-GITHUB

목록 보기
3/5
post-thumbnail

CH3. git flow feature

1. git feature

clone && init

git clone [repo-url]
git flow init
	# main > develop > feature
	# init 시, name이 적혀있으면 그대로 진행. 아닐 경우에만 작성해줌.

flow start

git flow feature start [feature-name]
	# create new branch ➡ feature/[feature-name]

💨💨💨🏃‍♀️💻🏃‍♀️ develop (+add, commit) 💻🏃‍♀️💻💨💨💨

flow finish

git flow feature finish [feature-name]

develop에서 feature branch 생성 후, 해당 branch에서 작업
작업이 종료되면 다시 develop 으로 돌아감
🙆‍♀️ develop에서 자동으로 feature branch 내용을 merge

remove feature branch

$ git checkout develop
$ git branch -D [feature-branch] 

2. release && tagging

release start

$ git flow release start v0.1
	# branch - release/v0.1
	# main을 넘어가기 전, 해야할 작업 수행	
	# packaging 작업, ci 작업, uglify 작업 등 수행
	# 읽기 쉬운 코드를 uglify, 기본 test 단계 이상의 test 수행

$ git flow release finish v0.1
	# 총 3번의 merge
	# 1. main
	# 2. tagging  👉 release note가 될 부분(작성 중요)
	# 3. develop

push

$ git push -u origin develop 
$ git push origin master
$ git push --tags

3. REF

flow-cheatsheet

profile
블로그 이사했어요 https://ktmihs.tistory.com/

0개의 댓글