[GIT REMOTE CHANGE]

Now, Sophia·2022년 8월 1일
0

TIL-ETC

목록 보기
10/13
post-thumbnail

참고

stack overflow

문제

git remote url 을 변경해야 하는 경우

해결

  1. vs code 편집기에 들어가서 remote 위치를 확인한다
git remote -v
  1. 소스관리 할 레파지토리 주소를 복사해서 붙여넣는다.
git remote set-url origin "레파지토리주소"
  1. 생성한 레파지토리에 커밋하고 푸쉬한다.
git add .
git commit -m"First commit"
git branch -M master
git push -u origin master
profile
Whatever you want

0개의 댓글