Git

· Back-End/GIT
git을 사용하면서 일단 깃 리파지토리를 생성 후 echo "# PortFolio-vue" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin https://github.com/hyunchang88/PortFolio.gitgit push -u origin main 이런식으로 명령어를 입력하여 깃에 올렸었는데 가끔가다가  remote origin already exists 에러가 발생해서 해결방법 정리 해두려고 합니다.  프로젝트 하나 복사해서 조금 다르게 수정하려고  깃 명령어를 하나씩 치다가보니 위와 같이 또 에러가 발생...  이건 origin 에 이미 연결이 되어 ..
git 사용하면서 C:\Users\23ffee\workspace\java-test>git push -u origin main To https://github.com/ParkHyunchang/junit5.git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/ParkHyunchang/junit5.git' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to hint: t..
- 광속거북이 -
'Git' 태그의 글 목록