커밋된 수정 내용을 원격 저장소로 전송합니다.
infoh@hojin MINGW64 /e/gitstudy05 (master)
$ git push origin master 커밋 서버 전송
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 369 bytes | 369.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/jinygit/gitstudy05.git
6a947b8..668b5ef master -> master
원본 저장소 변경과 원격 저장소를 갱신했습니다. 이제는 다시 복제된 로컬 저장소로 이동하여 갱신된 원격 저장소 내용을 페치해 보겠습니다.
infoh@hojin MINGW64 /e/gitstudy05 (master)
$ cd ../ gitstudy05_clone 복제 폴더 이동
infoh@hojin MINGW64 /e/gitstudy05_clone (master)
$ git fetch 커밋 내려받기
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/jinygit/gitstudy05
6a947b8..668b5ef master -> origin/master