git & github 공부 기록/🙈 git 오류

'origin' does not appear to be a git repository

stop-zero 2023. 3. 29. 00:48

문제 : push 하려고 했는데, origin이 존재하지 않는 상황


원인 : 레포지토리 생성 후 연결 과정에서 생긴 문제

1) git remote -v  로 원격 저장소 확인

2) 현재 연결된 주소를 해제 하자!

git remote remove origin [연결된 주소]

  • origin 저장소 연결 끊기 -> No such remote: 'origin' 라면
  • 다시 연결하면 된다

3) git remote add origin [레포지토리 주소]
4) git remote -v 

  • origin 에 잘 연결됨
  • 이후 push

 

Reference


https://letsgojieun.tistory.com/103

 

git 에러 : 'origin' does not appear to be a git repository 해결

어제부터 리액트와 타입 스크립트를 같이 공부해야겠다 싶어서 새로운 레포지토리를 생성했다 그리고 첫 push를 하려는 순간 origin 이 존재하지 않는다는 에러가 발생했다 fatal: 'origin' does not appea

letsgojieun.tistory.com