더북(TheBook)

새롭게 저장소를 복제해 보겠습니다. 상위 메인 폴더로 이동하여 새로운 깃 저장소를 복제합니다.

$ cd 메인폴더

$ git clone https://github.com/jinygit/gitstudy06.git gitstudy06_clone 원격 저장소를 복제. 복제한 폴더 이름은 gitstudy06_clone

Cloning into 'gitstudy06_clone'...

remote: Enumerating objects: 6, done.

remote: Counting objects: 100% (6/6), done.

remote: Compressing objects: 100% (3/3), done.

remote: Total 6 (delta 0), reused 6 (delta 0), pack-reused 0

Unpacking objects: 100% (6/6), done.

 

$ cd gitstudy06_clone 복제된 폴더로 이동

▼ 그림 6-22 복제 저장소

343663.png

2

Note

clone을 복제할 때는 생성 폴더의 이름을 지정하지 않으면, 깃허브의 저장소 이름과 동일한 폴더로 로컬 저장소가 생성됩니다. 다른 이름으로 복제할 때는 이름을 지정합니다.