반응형
GIT 원격 저장소(repo) URL(set-rul) 변경
- 원격 저장소 확인
git remote -v
결과 예시
origin http://git.xxx/xxx/~~~.git (fetch)
origin http://git.xxx/xxx/~~~.git (push)
- 저장소 변경
git remote set-url origin https://github.com/xxx/~~~.git
- 기존 (push) URL이 틀린 경우
git remote set-url --delete --push origin http://git.xxx/xxx/~~~.git
또는
git remote set-url --push origin http://git.xxx/xxx/~~~.git
- 최종 원격 저장소 재확인 : git remote -v
반응형