This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Git Branch & Merge μ λ΅
cheon-eunjeong edited this page Jul 12, 2023
·
5 revisions
-
Issue
(μμ ν°μΌ) μμ± -
develop
λΈλμΉμμIssue
λ¨μλ‘ μμ λΈλμΉ μμ±
a. κΈ°λ₯ κ°λ° :feature/{μμ μ΄λ¦}-{μ΄μλ²νΈ}
(e.g. feature/social-123)
b. ν«ν½μ€ :hotfix/{μμ μ΄λ¦}-{μ΄μλ²νΈ}
(e.g. hotfix/social-123) - ν΄λΉ λΈλμΉμ μ»€λ° μμ± π»
-
μμ λΈλμΉ
->develop
μΌλ‘ PR μμ²
a. νμλ€μ 리뷰 λ° Approve -
μμ λΈλμΉ
->develop
PR MergeλSquash & Merge
μ¬μ© -
develop
->main
PR μμ²
a. front-endμ back-endμ κΈ°λ₯μ΄ λͺ¨λ μ¨μ ν μ€νλλμ§ ν μ€νΈ -
develop
->main
PR MergeλCreate merge commit
μ¬μ©
%%{init: { 'theme': 'base', 'gitGraph': {'showBranches': true, 'showCommitLabel': false } } }%%
gitGraph
commit
branch develop order: 2
commit
branch feature1 order: 3
commit
checkout develop
branch feature2 order: 4
commit
checkout develop
merge feature2
checkout feature1
commit
checkout develop
merge feature1
checkout main
merge develop
branch hotfix order: 1
commit
commit
checkout develop
commit
checkout develop
merge hotfix
checkout main
merge hotfix
branch | role | rule | description |
---|---|---|---|
main | μ£Όμ λΈλμΉ | μμ X | production, μλ²μ λ°°ν¬λ λΈλμΉ |
develop | κ°λ° λΈλμΉ | μμ X | frontend, backend, hotfix λΈλμΉκ° ν©μ³μ§ κ°λ° λΈλμΉ |
feature | μ κ· κΈ°λ₯ κ°λ° |
develop μ λ¨Έμ§ ν μμ |
issueμ ν΄λΉνλ feature ꡬν λΈλμΉ Β Β β¦ feature/{μμ
μ΄λ¦}-{μ΄μλ²νΈ} νμ Β Β β¦ μμ μ΄λ¦μ kebab-case λ‘ νλ€. Β Β β¦ e.g.) feature/social-123
|
hotfix | λ²κ·Έ, μλ¬ μμ |
develop , main λ¨Έμ§ ν μμ |
μλ²μ λ°°ν¬λμκ±°λ, κΈ°λ₯ ꡬνμ΄ μλ£λ μν©μμ κΈν λ²κ·Έ ν½μ€λ₯Ό ν΄μΌ ν λ μμ±νλ λΈλμΉ Β Β β¦ hotfix/{μμ
μ΄λ¦}-{μ΄μλ²νΈ} νμ Β Β β¦ μμ μ΄λ¦μ kebab-case λ‘ νλ€. Β Β β¦ e.g.) hotfix/social-123
|
-
feature
βdevelop
: Squash & Merge -
develop
βmain
: Create merge commit
π‘ μ°Έκ³
developμμ mainμΌλ‘ κ° λμλ νλ‘ νΈμ λ°±μ κΈ°λ₯μ΄ λͺ¨λ μ¨μ ν λμκ°κ² λμμ λ λ¨Έμ§μν€λλ‘ νμ.
Β© 2023 dong-gle - All Rights Reserved.