Skip to content

πŸ“Œ git μ‚¬μš© μ‹œ μ£Όμ˜ν•  점 πŸ“ŒΒ #2

@jooe0824

Description

@jooe0824

βœ” terminal μΌ  λ’€

git clone β€œ~~~μ£Όμ†Œβ€ (repo μ£Όμ†Œ)

βœ” 브랜치 λ§Œλ“€κΈ°

git branch <브랜치λͺ…>

βœ” 브랜치 μ΄λ™ν•˜κΈ°

git checkout juju <λ‚˜μ˜ 브랜치λͺ…이 jujuμΌλ•Œ>

브랜치 ν™•μΈμ‹œ 'git branch'λ₯Ό 치면
'''
master

juju
juju λΈŒλžœμΉ˜μ— ν˜„μž¬ μœ„μΉ˜ν•΄ μžˆλ‹€λŠ” 것을 μ•Œ 수 있음
'''

βœ” μ½”λ“œ μˆ˜μ • μ „

git pull
ν˜Ήμ€
git pull origin @@@

βœ” λ‚΄ λΈŒλžœμΉ˜μ—μ„œ μž‘μ—… μ‹œμž‘

μž‘μ—… μ‹œμž‘ μ‹œ 개인 λΈŒλžœμΉ˜μ—μ„œ
git pull origin master
master μ½”λ“œ pull λ°›μ•„μ˜€κ³  μ‹œμž‘ν•΄μ•Ό 꼬이지 μ•ŠμŒ!

βœ” μ½”λ“œ μˆ˜μ • ν›„

git status -> ν˜„μž¬ staging 확인 κ°€λŠ₯
git add .
git commit -m β€œ β€œ -> λ”°μ˜΄ν‘œ μ•ˆμ— μ›ν•˜λŠ” 컀밋 λ©”μ„Έμ§€ μž…λ ₯
git push
git homepage λ“€μ–΄κ°€μ„œ 확인 ' λ‚΄ λΈŒλžœμΉ˜μ— 잘 μ˜¬λΌκ°€ μžˆλ‚˜? '
이제 μ€‘μš”ν•œ πŸ’« merge πŸ’«
βœ” 브랜치 λ³€κ²½ => git checkout master

git pull origin master (λ‹€λ₯Έ μ‚¬μš©μžκ°€ push ν•œ κ±° λ¨Όμ € λ°›μ•„μ£ΌκΈ°)
git merge juju (개인 λΈŒλžœμΉ˜κ°€ juju일 경우)

좩돌 μ—†λŠ” 경우)

msg: auto-merging
git push
ν™ˆνŽ˜μ΄μ§€ λ“€μ–΄κ°€μ„œ μ—…λ°μ΄νŠΈ 확인
좩돌이 일어날 경우)

였λ₯˜ msg: Automatic merge failed; fix conflicts and then commit the result.
μ†ŒμŠ€μ½”λ“œ ν™•μΈν•˜λ©΄μ„œ accept ν•΄μ€Œ
=> current Accept (λ³€κ²½ μ΄μ „μ˜ μ½”λ“œλ₯Ό accept ν•˜κ² λ‹€) / Incoming Accept (λ³€κ²½ μ΄ν›„μ˜ μ½”λ“œλ₯Ό accept ν•˜κ² λ‹€)
git add .
git commit -m β€œ β€œ -> λ”°μ˜΄ν‘œ μ•ˆμ— μ›ν•˜λŠ” 컀밋 λ©”μ„Έμ§€ μž…λ ₯
git push
ν™ˆνŽ˜μ΄μ§€ λ“€μ–΄κ°€μ„œ μ—…λ°μ΄νŠΈ 확인

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions