페치된 리모트 브랜치 목록을 이용하여 새로운 로컬 브랜치를 만들어 봅시다. 원격 저장소의 브랜치 목록에서 origin/aaa가 추가된 것을 확인할 수 있습니다. origin/aaa 리모트 브랜치를 기반으로 로컬 저장소에 aaa 브랜치를 새롭게 생성합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy06 (feature)

    $ git checkout -b aaa origin/aaa 브랜치 생성 및 이동

    Switched to a new branch 'aaa'

    Branch 'aaa' set up to track remote branch 'aaa' from 'origin'.

     

    infoh@DESKTOP MINGW64 /e/gitstudy06 (aaa)

    ▼ 그림 6-28 로컬 브랜치 생성

    344152.png

    잘 만들어졌는지 트래킹 브랜치 목록을 확인합니다.

    infoh@DESKTOP MINGW64 /e/gitstudy06 (aaa)

    $ git branch -vv 트래킹 브랜치 목록

    * aaa dcdb1c1 [origin/aaa] master working... 생성된 브랜치

    feature 85f1dfa [origin/function] functionmaster2 working

    footer d84766c first

    hotfix dcdb1c1 [origin/hotfix] master working...

    master dcdb1c1 [origin/master] master working...

    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.