어제와 똑같이 살면서 다른 미래를 기대하지 말자

[Git] remote 저장소 변경 본문

IT관심분야/Git

[Git] remote 저장소 변경

플랜액터 2019. 1. 23. 14:37

리모트 저장소 변경


1. 현재 리모트 저장소 확인

$ git remote -v

origin  https://gitlab.com/group1/project1.git (fetch)

origin  https://gitlab.com/group1/project1.git (push)


2. 리모트 저장소 변경/확인

$ git remote set-url origin https://gitlab.com/group2/project2.git

$ git remote -v

origin  https://gitlab.com/group2/project2.git (fetch)

origin  https://gitlab.com/group2/project2.git (push)


3. 변경된 리모드 저장소에 push

$ git push -u origin master



Comments