서버의 기능을 임대해주는 서비스
: git 원격 저장소 (git hosting)
push
: 업로드
pull
: 다운로드
clone
: 복제
지역저장소(내컴퓨터) --
push
pull
-- 원격저장소(github) --clone
push
pull
-- 지역저장소(회사컴퓨터)
local repository
: 지역저장소remote repository
: 원격저장소git remote add <이름> <github 주소>
origin
을 약속처럼 사용함git remote
연결 상태 확인 : 이름이 나옴git remote -v
: 연결 주소 확인 git push
git clone <주소> <디렉토리명>
: 원격저장소에 있는 git 디렉토리 복제
git pull
: 원격저장소를 통해 지역저장소 업데이트(다운로드)