[GIT] Git Repository

김주하·2024년 3월 19일

GIT저장소

repository는 git으로 관리하는 프로젝트 저장소
파일과 디렉토리가 포함될 수 있고, 버전관리 가능
local repository : 사용자의 컴퓨터의 저장소
remote repository : 원격서버의 저장소

GIT 저장소 생성

GIT INIT : 아직 버전관리를 하지않는 프로젝트 폴더를 git 저장소로 만들 수 있다
GIT CLONE : remote 저장소를 local에 복사하여 사용할 수 있다

git init

폴더 안에서 깃이닛을 해야 그 폴더가 깃 레파지토리가 됨
레파지토리 주소

https://github.com/<organization>/<project_name>.git
https://github.com/<user_name>/<project_name>.git

로컬에 레파지토리 복제

git clone <remote_repository_url>
git clone https://github.com/<organization>/<project_name>.git

로컬과 리모트 권한 계속 물어봄.

git clone https://<token>@github.com/<organization>/<project_name>.git

토큰

0개의 댓글