[Git] git clone과 git remote add의 차이점
·
공부/Git
1️⃣ git clone git clone https://github.com/example/repository.git git clone은 원격 저장소에 있는 전체 내용을 로컬(컴퓨터)로 복제한다. 컴퓨터에 물리적인 다운로드가 되기 때문에 저장공간이 필요하다. 위 예시로 보면, example/repository.git의 모든 내용을 복제하여 C:\Users\Intellij\repository라는 폴더가 생기는 것이다. url에 있는 레포지토리가 말 그대로 복제된다. 다른 사람이 만든 코드를 가져와 사용할 수 있다. 2️⃣ git remote add git remote add upstream https://github.com/upstream/repository.git git remote add는 새로운 원격..