[fatal: remote origin already exists 그리고 다른 하나 fatal 'origin' does not appear to be a git repository fatal Could not read from remote repository] 깃 푸시 오류
❗ 2가지 오류 및 해결방법을 작성하였습니다
- fatal: remote origin already exists
 - fatal ‘origin’ does not appear to be a git repository fatal Could not read from remote repository
 
 
 
 
 
 
🚨문제 발생 1
1
fatal: remote origin already exists
 
 연결오류라고 하니 자 이제 기존 연결을 끊고 재연결을 해봅시다. 
 
 
 
🔑내가 해결한 방법 1
1
2
3
4
git remote rm origin     (기존 연결 끊기)
git remote add origin 깃 리포 주소 입력
git remote -v          (잘 연결되었나 확인)
git push origin main
 
 
 
 
🚨문제 발생 2
1
fatal 'origin' does not appear to be a git repository       fatal Could not read from remote repository
 
 깃 리포로 부터 읽을 수 없다 ? 
 
 
 
🔑내가 해결한 방법 2
1
2
3
4
git remote add origin "https://github.com/joonhwan2/joonhwan2.github.io.git"
git clone "https://github.com/joonhwan2/joonhwan2.github.io.git"
git pull origin main
git push origin main
★ 깃 클론명령어 사용 후 폴더는 현재 위치한 경로에 생성될 건데
      생성된 폴더는 삭제해도 무방함.
준환과 함께 깃 명령어 알아보러 가기🤓
 
 
 
 
 
보시고 미흡한 부분이 있다면 피드백은 언제나 환영합니다!
 
 아래 사진을 클릭하면 제 취미공간으로 이어집니다 ㅎㅎ 여기에서 메모 및 일상을 기록하는데 놀러오실 분들은 언제나 환영합니다!
링크로 이동하려면 사진을 클릭
 This post is licensed under  CC BY 4.0  by the author.

