Git | Github

[Git] 연결된 리포지토리 변경하는 방법

hurlud 2023. 8. 11. 21:52

기존 리포지토리 모두 commit, push 해주기

바꾸기 전 누락된 수정 사항이 없도록 리포지토리를 업데이트 해줍니다.

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




기존 remote된 레포지토리 제거하기

git remote remove origin




새로운 레포지토리 추가하기

git remote add 레포지토리url