✨ repository remote 연동
✨ repository remote 연동 해제
$ git remote add origin <깃헙 주소>
$ git remote remove origin
✨ 내 local repository에 있는 파일 remote repository에 올리기
git add . // 수정된 모든 파일 가져오기 (. 대신 해당 파일 경로 가져오기)
git commit -m "write comment" // 커밋을 꼭 해줘야 함.
git status // 내 area에 제대로 올라와 있는지 확인
git push origin [branch name] // 최종적으로 리모트 레포지토리에 올리기
✨ connect
$ git remote add pair <페어 주소>
$ git remote add upstream <업스트림 주소>
$ git remote add origin <오리진 주소>
- 원격 저장소 이름 확인(pair, upstream과 연결되었는지 확인하기)
$ git remote -v
$ git pull pair master(or other branch name) // pair 등록
$ git pull add upstream // upstream 등록
✨ remove
$ git remote rm [리모트명]
$ git remote remove pair // 페어를 삭제하고 싶은 경우
$ git remote remove upstream // 업스트림을 삭제하고 싶은 경우