remote : 새로운 저장소를 추가하거나 변경할 수 있다
1. PC 로컬과 깃허브 연동시키기
git remote add <등록 이름> <원격 저장소 주소>
ex : git remote add origin https://github.com/[name]/test.git
2. 로컬에서 작업한 내용을 깃허브에 업데이트하기
git push <등록된 저장소명(리모트에서의 등록이름)(remote)> <branch>
ex : git push origin main
3. 깃허브의 내용을 가져오기(병합)
git pull <등록된 저장소명(리모트에서의 등록이름)(remote)> <branch>
ex : git pull origin main
4. 깃허브의 내용을 가져오기(병합X)
git fetch <등록된 저장소명(리모트에서의 등록이름)(remote)>
ex : git fetch origin
5. 내용 저장하기(커밋)
git commit -m "<내용>"
ex : git comit -m "First commit"