커밋한 후 브랜치 정보를 다시 확인해 보겠습니다.

    infoh@DESKTOP MINGW64 /e/gitstudy06_clone (function)

    $ git commit -am "function working" 등록 및 커밋

    [function 85f1dfa] functionmaster2 working

    1 file changed, 2 insertions(+), 1 deletion(-)

     

    infoh@DESKTOP MINGW64 /e/gitstudy06_clone (function)

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

    * function 85f1dfa [origin/function: ahead 1] functionmaster2 working AHEAD 표시

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

    function 브랜치 정보에 AHEAD 1이 표시됩니다. 원격 저장소로 전송되지 않은 커밋이 하나 있다는 의미입니다. push 명령어를 사용하여 원격 저장소로 새롭게 추가된 커밋을 전송합시다.

    infoh@DESKTOP MINGW64 /e/gitstudy06_clone (function)

    $ git push 커밋 전송

    Enumerating objects: 5, done.

    Counting objects: 100% (5/5), done.

    Delta compression using up to 8 threads

    Compressing objects: 100% (2/2), done.

    Writing objects: 100% (3/3), 346 bytes | 115.00 KiB/s, done.

    Total 3 (delta 0), reused 0 (delta 0)

    To https://github.com/jinygit/gitstudy06.git

    d84766c..85f1dfa function -> function 원격 저장소로 전송

    ▼ 그림 6-23 변경 내용 전송

    344094.png

    복제된 저장소에서 수정된 커밋이 원격 저장소로 전송되었습니다.

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