git 오류 해결 -1

오늘  포트폴리오 관련해서 vsc에서 작업을 하고 있었는데 git으로 폴더를 연동해서 push를 하려고 했는데 오류가 나타났다.

 

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 할 때 오류 발생 시


git remote -v 확인
origin  github.com/hyunbeanohh/boiler-plate.git (fetch)
origin  github.com/hyunbeanohh/boiler-plate.git (push)

ssh주소를 아래 https주소로 변경
git remote set-url origin github.com/hyunbeanohh/boiler-plate.git

git push -u origin master

대신 

git push origin master 


이렇게 푸시하면 해결이 되었다 .

 

<