push하려는데 origin이라는 저장소가 없다고 한다.
$ git remote -v
연결된 저장소를 확인해보니 origin을 orign으로 잘못 썼다.
$ git remote rename <현재 이름> <변경할 이름>
$ git remote remove <삭제할 저장소 이름>
$ git remote add origin <저장소 주소>
저장소 이름 변경은 rename,
저장소 자체를 삭제하고 다시 등록할거면 remove 후, 다시 등록하면 된다.
'생각하는 의자' 카테고리의 다른 글
프로젝트 협업 연습(클론 버전) (0) | 2024.04.02 |
---|---|
[Git]error: src refspec main does not match any (0) | 2024.02.05 |
[Git]repository fork하기 (0) | 2024.02.05 |
[NVM]nvm for windows should be run from a terminal such as cmd or powershell 해결 (0) | 2024.02.02 |
[Git]Fork한 repository 업데이트하는 2가지 방법 (0) | 2024.01.31 |