Skip to content
On this page

git clone

remote repo를 복사하여 local repo를 생성할 때 사용하는 명령어로, 실행하면 다음과 같은 작업들이 수행됩니다.

  • main branch에서 최근 commit에 해당하는 프로젝트 파일들이 로컬에 저장된다.
  • remote history 전체를 로컬에 저장한다.
  • 새로운 main branch를 생성한다.
  • local repo 상에서 remote repo의 URL이 origin이라는 이름으로 등록된다.