배운 것/git
[git] github 기존 저장소 변경
doogoong
2019. 10. 24. 16:07
https://mollang.herokuapp.com/
React App
mollang.herokuapp.com
위 링크에 연동되어 있는 git 저장소 명칭을 바꾸고 싶다.
기존 저장소는 https://github.com/ksy8230/aaa
바꾸고 싶은 저장소 https://github.com/ksy8230/bbb
(1) cmd 창에서 해당 프로젝트 로컬 경로로 이동한다.
(git remote -v 라는 명령어로 현재 (바뀌기 전) 기존 저장소 명을 체크할 수 있다)
(2) git remote set-url 명령어를 사용하여 저장소 url 변경
(ex git remote set-url origin https://github.com/ksy8230/bbb)