본문 바로가기
Git, GitHub

Git remote URL 변경 방법 (https, SSH 변경 포함)

by 2Plus 2020. 11. 28.
  • git remote URL 변경은 set-url 커맨드를 이용하여 할 수 있다.
  • 변경할 remote의 이름도 지정해줘야 하는데 보통 origin이나 upstream일 것이다. 잘 모르겠으면 확인하여 진행하면 된다.
  • "git remote set-url origin [repo 주소]"의 형태로 사용하면 된다.
  • https인지 SSH인지에 따라 다음과 같은 형태로 repo 주소를 지정해주면 된다.
  • https : https://github.com/USERNAME/REPOSITORY.git
  • SSH : git@github.com:USERNAME/REPOSITORY.git
반응형

'Git, GitHub' 카테고리의 다른 글

GitHub Actions로 Flutter 앱 빌드하기  (1043) 2022.04.03
Git Commit Message Convention  (117) 2022.02.03

댓글