오늘 포트폴리오 관련해서 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
이렇게 푸시하면 해결이 되었다 .
'개발 > Git' 카테고리의 다른 글
[Git] git add 취소하기 , git commit 취소하기, git push 되돌리기 (0) | 2022.07.11 |
---|---|
Git 화살표 폴더 해결 ! (0) | 2021.03.16 |