Git - Remote URL 변경

less than 1 minute read

원격 주소 변경

1. 이전 remote 주소 확인

  •   $ git remote -v
      > origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
      > origin  https://github.com/USERNAME/REPOSITORY.git (push)
    

2. 새로운 주소로 변경

  •   $ git remote set-url origin https://github.com/NewNAME/NewREPOSITORY.git (fetch)
    

3. remote 주소 확인

  •   $ git remote -v
      # Verify new remote URL
      > origin  https://github.com/NewNAME/NewREPOSITORY.git (fetch) (fetch)
      > origin  https://github.com/NewNAME/NewREPOSITORY.git (fetch) (push)
    

Categories:

Updated:

Leave a comment