git(local)과 github repository(remote)를 연동하기
$ git remote add origin "깃허브 레포지토리 주소"
- 그림처럼 git remote add origin 명령어 뒤에 레포지토리 주소를 붙이거나 명령어 자체를 복사 하면 됨.
local의 커밋을 remote에 반영하기 (git push)
$ git push origin “브랜치 이름”
$ git remote add origin "레포지토리 주소"
$ git push origin main
remote에서 local로 프로젝트 복제하기 (git clone)
$ git clone "레포지토리 주소"
$ cd /
$ cd D:
$ cd javascript_basic
$ git clone "깃허브 레포지토리 주소"
remote에서 변경 발생 시 변경사항을 local로 반영하기 (git pull)
$ git pull origin "브랜치 이름"
$ cd javascript_basic
$ git pull origin main
push & pull 그리고 Clone의 flow
