강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

castie님의 프로필 이미지
castie

작성한 질문수

빠르게 git - 핵심만 골라 배우는 Git/Github

협업하기(2) - 로컬도 변했는데 원격도 변한 경우

협업 push error

작성

·

137

1

analysis@DESKTOP-0M7522G MINGW64 ~/Desktop/co-practice (addfooter)

$ git commit -m "add"

[addfooter (root-commit) 0ece3a8] add

 2 files changed, 1 insertion(+)

 create mode 160000 melon-playlist-continuation

 create mode 100644 test.txt

analysis@DESKTOP-0M7522G MINGW64 ~/Desktop/co-practice (addfooter)

$ git push origin addfooter

fatal: 'origin' does not appear to be a git repository

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

push 했을때 에러가 나오는데 확인해주실 수 있나요?

답변 1

0

강민철님의 프로필 이미지
강민철
지식공유자

원격저장소에 연결이 되지 않아서 생긴 에러입니다.

git remote -v를 통해 origin이 올바른 url로 연결이 되어 있는지 확인해보시고,

만일 저장소가 있는데도 같은 오류가 뜬다면

git remote remove <저장소이름> 으로 삭제 후

다시 등록해보세요...!! :)

castie님의 프로필 이미지
castie

작성한 질문수

질문하기