본문 바로가기
Lect & Tip/vscode

vs code Git Remote repository url 변경

by 낯선공간2019 2022. 11. 7.
반응형

📌 vscode가 git 플러그인을 사용하긴 해도, 기본적으로 vscode는 vscode이고, git은 git이다.

vscode는 git을 잘 이용할 수 있게 해 주도록 플러그인으로 interface만 제공한다고 보면 된다.

Git Remote repository  url 변경은 기존의 리모트 origin을 제거하고, 새 repository url을 입력해주면 된다.

순서가 바뀌면 당연히 안된다.

이 작업을 하기 전에 git 리포지트리를 깨끗이 해 줄 필요가 있다.

git pull
git add .
git commit -m "clean push"
git push

그런 뒤에 Remote origin을 제거한다.

git remote remove origin

다시 이 상태에서 새 Remote repository  url 을 추가해주면 끝.

git remote add origin https://리포지트리 주소
반응형

댓글