git 원격 브런치 연결 및 변경

국물빌런·2021년 1월 19일
0

새로운 원격 저장소를 만들고 연결하는 경우

echo "# car-management-cms" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/sonsoohoon/car-management-cms.gitgit push -u origin main
                

기존 프로젝트의 원격저장소를 변경하는 경우

git remote remove origin
git remote add origin https://github.com/sonsoohoon/car-management-cms.gitgit brbranch -M main
git push -u origin main
profile
국물을 달라

0개의 댓글