Clone을 사용하여 Remote Repository를 로컬에 복제해보자!
Remote Repository를 Local로 복제해서 사용하기
- Local Repository를 생성하지 않은 상태에서 Git clone 명령을 사용하여 Remote Repository를 Local에 복제할 수 있다.
Git Clone
- 원래는 아래와 같은 과정으로 Remote Repo를 내 Local로 가져올 수 있었다.
- 폴더생성 => Git init 으로 해당 폴더 초기화 => Remote Repo 등록 => Remote Repo의 내용을 Pull
- 위의 모든 과정을 Git Clone 하나만으로 할 수 있음
git clone https://<username>:<token>@github.com/<repository>.git
- 테스트를 위해 먼저, Remote Repository 생성
- 비어 있으면 안되니 README file까지 체크
README file
프로젝트에 대한 설명, 사용방법, 라이센스, 설치 등에 관한 내용을 기술하는 파일
말 그대로 일종의 설명서
.gitignore
Git 버전 관리에서 제외할 파일목록을 지정하는 파일
사용자가 원하지 않는 파일들을 자동으로 commit 대상에서 제외시켜 줌
이전 글을 보고 싶다면?
2022.01.03 - [컴쀼따/Git] - Git1 (Git 이란?)
Git1 (Git 이란?)
Git1 내가 처음 Git을 접했을 때 너무 어려웠다, 처음보면 다 그러니 계속봐서 익숙해지자 ! Git 이란? 버전관리 시스템(형상관리)의 한 종류 Configuration Management Systems, Version Control Systems 버전관..
variety82p.tistory.com
2022.01.03 - [컴쀼따/Git] - Git 2(Global configuration & 기본용어)
Git 2(Global configuration & 기본용어)
Git Global Configuration 기초설정! Global User name & Email 말 그대로 유저의 이름과, 이메일 등록하는 과정 git config --global user.name git config --global user.email Line ending 줄바꿈을 하거나 엔..
variety82p.tistory.com
2022.01.05 - [컴쀼따/Git] - Git3 (Local Repository, Remote Repository)
Git3 (Local Repository, Remote Repository)
Local Repository Local Repository 구성 Local Repository는 Git이 관리하는 3단계로 구성되어 있다. Working Directory(작업공간) - 실제 소스 파일, 생성한 파일들이 존재, 그냥 컴퓨터에 있는 폴더라 생각! In..
variety82p.tistory.com
2022.01.03 - [컴쀼따/Git] - Git 2(Global configuration & 기본용어)
2022.01.05 - [컴쀼따/Git] - Git3 (Local Repository, Remote Repository)
'💻 > Git' 카테고리의 다른 글
Git6 (Git Graph, Git Log) (0) | 2022.01.05 |
---|---|
Git5 (Branch) (0) | 2022.01.05 |
Git3 (Local Repository, Remote Repository) (0) | 2022.01.05 |
Git 2(Global configuration & 기본용어) (0) | 2022.01.03 |
Git1 (Git 이란?) (0) | 2022.01.03 |