git-flow λ μ΄λ λΈλμΉμμ μ΄λ€ μν μ ν μ§ λ―Έλ¦¬ μ ν μνΈκ°μ μ½μμ΄λ€.
ννμ΄μ§μ μ€μΉλΆν° μ¬μ©λ² κΉμ§ μ€λͺ λμ΄ μλ€.
https://danielkummer.github.io/git-flow-cheatsheet/index.ko_KR.html
git-flow cheatsheet
danielkummer.github.io
git-flow λ merge κΈ°λ°(Rebase μλ)
μλμ°μλ μ΄λ―Έ μ€μΉλμ΄ μλ€.
λ§₯μμλ λ€μ λͺ
λ Ήμ΄λ‘ μ€μΉνλ€.
$ brew install git-flow-avh
git-flowλ₯Ό μ¬μ©ν λλ ν 리μ κ°μ μ΄κΈ°ννλ€.
git flow init
κ° λΈλμΉλ μ©λλ λ€μκ³Ό κ°λ€.
master
μ¬μ©μκ° μ€μ μ¬μ©νλ μμ μ μΈ λ²μ μ μμ€λ€μ΄ μ¬κΈ°μ μλ€.
develop
μμΌλ‘ λ°°ν¬λ λ²μ μ μμ€λ€μ΄ μΆκ°λλ€.
feature
μλ‘μ΄ κΈ°λ₯μ κ°λ°μ feature λΈλμΉμμ νκ²λλ€.
release
λ¦΄λ¦¬μ¦ νκΈ° μν λΈλμΉμ΄λ€.
hotfix
κΈ΄κΈν μμ μ μν λΈλμΉμ΄λ€.
$ git flow feature start [feature name]
# [feature nmae] μ΄λΌλ λΈλμΉκ° μμ±λκ³ λ°λλ€.
# μ΄ν κΈ°λ₯ κ°λ°μ νκ³ git add μ commit κΉμ§ ν΄μ€λ€.
$ git flow feature finish [feature name]
# [feature name] λΈλμΉκ° develop μΌλ‘ merge λκ³ μμ λλ€.
$ git push -u [remote_name] develop
# μ²μ pushλ₯Ό νλ κ²½μ° -u λ₯Ό λΆμΈλ€.
'π TIL' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[220406]CSS μμ± (0) | 2022.04.06 |
---|---|
[220403] κΈ°λ³Έ κ°μ / νΉμλ¬Έμ (0) | 2022.04.05 |
[220401] git restore / reset / commit --amend (0) | 2022.04.02 |
[220329] Commit Convention (0) | 2022.03.29 |
[220328] CLI /vim / markdown (0) | 2022.03.28 |