728x90
반응형
repository 변경
-
[Git] repository(원격 저장소) 주소 변경Etc 2024. 12. 5. 09:00
기존 원격 저장소 주소를 변경하기 위해서는 git remote set-url 명령어를 사용하면 된다. 변경하기 전 현재 local의 git 저장소가 어느 원격 저장소와 연결되어 있는지 보고 싶다면 아래와 같이 git remote -v 명령어를 입력해 확인할 수 있다. git remote -v# origin https://github.com/id/repository.git (fetch)# origin https://github.com/id/repository.git (push) 확인 후 git remote set-url origin 를 입력하면 원격 저장소 주소가 변경된다. git remote set-url origin https://github.com/id/new-repository.git