version control

어떤 git branching model을 선택해야 할까? (feat.git-flow)

트밀 2023. 2. 19. 19:10

왜?

Git branching model는 개발자들간의 협력을 증진시키기 위한 일종의 룰이다. 

repositoy를 더 구조적이고 일관적으로 관리할 수 있게 해준다. 

 

어떤 것?

1. Git-flow(Most Common Used)

five main branches: master, develop, feature, release, and hotfix.

커맨드 git flow init이 존재한다. 

2. Github flow (Continouos Delivery에 적합)

lightweight.

two main branches: master and feature.

3. GitLab flow (Continouos Delivery에 적합)

three main branches: master, staging, and feature.

 

4.One Flow 

gitflow를 비판하면서 나온 모델.

 it not has develop branch.

  • It isn’t recommended for projects with Continuous Delivery or Continuous Deploy and Continuous Integration.

OneFlow – a Git branching model and workflow | End of Line Blog

 

5. feature branch workflow

6. forking workflow

오픈소스모델. 

참고

https://nvie.com/posts/a-successful-git-branching-model/

4 branching workflows for Git. In this article, we will cover the most… | by Patrick Porto | Medium

우린 Git-flow를 사용하고 있어요 | 우아한형제들 기술블로그 (woowahan.com)

소규모 팀의 협업을 위한 git + github workflow (tistory.com)

[GitHub] GitHub로 협업하는 방법[1] - Feature Branch Workflow - Heee's Development Blog (gmlwjd9405.github.io)

Pull Requests | Atlassian Git Tutorial