공부/Git
Git 원격 저장소 URL 변경하기
mezo
2022. 4. 19. 17:52
728x90
반응형
기존 원격 저장소 URL을 변경하기 위해 git remote set-url 명령어를 사용합니다:
$ git remote -v
# View existing remotes
origin https://github.com/user/repo.git (fetch)
origin https://github.com/user/repo.git (push)
$ git remote set-url origin https://github.com/user/repo2.git
# Change the 'origin' remote's URL
$ git remote -v
# Verify new remote URL
origin https://github.com/user/repo2.git (fetch)
origin https://github.com/user/repo2.git (push)
만약 intelliJ에서 변경해주고 싶다면
'Git > Manage Remotes ..' 에서 직접 url 을 수정해주면 된다.
728x90
반응형