[git] 저장소 주소 repository 변경

송현·2022년 9월 29일
0

git

목록 보기
1/1

형상 관리툴을 기존 쓰던 git에서 회사 svn 으로 옮겼는는데 외부 업체랑 같이 프로젝트를 하다보니 회사 svn은 여간 불편한게 아니었다.
그래서 다시 기존 쓰던 git으로 옮기기 위해 저장소 주소를 변경하는 법을 적어봤다.

현재 연결된 주소 확인

git remote -v

결과
origin https://github.com/user/song.git (fetch)
origin https://github.com/user/song.git (push)

새로운 repository url 로 세팅

git remote set-url origin [새로운 git 주소]
ex) git remote set-url origin https://github.com/sunghyun0216/miso

변경되었는지 확인

git remote -v

profile
송린이

0개의 댓글