Skip to content

bib12ag/gitflow-tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitflow-tutorial

develop 브랜치에서 새로운 기능을 개발하는 과정

  1. 원격 저장소에서 develop 브랜치를 pull 한다.
git pull origin develop	
  1. feature 브랜치를 생성한다.
git checkout -b feature-sth
  1. 개발 완료 후, feature 브랜치를 develop 브랜치에 rebase 한다.
git checkout develop
git pull origin develop
git rebase develop feature-sth
  1. feature 브랜치를 원격 저장소로 push 한다. (rebase 후 feature 브랜치로 자동 checkout 됨)
git push origin feature-sth
  1. github 에서 PR을 날린다.
  2. 원격 저장소 develop 브랜치에서 merge 된 결과를 pull 하고 원격 로컬 모두 feature 브랜치를 삭제한다.
git checkout develop
git pull origin develop
git branch -d feature-sth
  1. merge 되지 않으면 원격 저장소의 feature 브랜치를 삭제하고 3번부터 다시 시작한다.

주의 사항

  • 로컬에서 merge 하지 않는다.
  • feature 브랜치는 개발이 완료되고 PR을 날릴 때 원격 저장소에 push 한다.
  • 7번에서 로컬 브랜치는 삭제하지 않는다.

참고 자료

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%