프로그래밍 농장

[Git] github 사용 중, fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. 에러 해결법 본문

IT 관련 정보

[Git] github 사용 중, fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. 에러 해결법

Tennessee201 2022. 2. 18.
728x90

먼저 원격 연결이 어떻게 되어있는지 확인한다. 

git remote -v

 

만약에 origin 말고 다른 이름으로 연결이 되어 있으면 삭제해주고 다시 연결해줘도 된다.

 git remote remove [이름]

 

아무것도 연결되어 있지않다면, 아래와 같이 원격저장소와 로컬을 연결해주면 된다.

git 저장소와 연결을 진행한다.

git remote add origin [git 저장소 url]

 

이후 push 나 pull 을 수행해보면 문제없이 작동하는것을 확인할수있다.

 

728x90