로컬 저장소와 원격 레포지토리 연결
git remote add origin [원격 레포지토리 URL]
연결 확인
git remote -v
원격 레포지토리 연결 취소
git remote remove [원격 레포지토리 이름]
ex)
git remote remove origin
명령어 모음
create a new repository on the command line
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [원격 레포지토리 URL]
git push -u origin main
push an existing repository
git remote add origin [원격 레포지토리 URL]
git branch -M main
git push -u origin main
Git에서 로컬 저장소와 원격 레포지토리 연결하는 방법