JuJuKwakKwak

fatal: couldn't find remote ref master 본문

Data Science/error 모음

fatal: couldn't find remote ref master

jujukwakkwak 2022. 1. 30. 00:13

깃허브에서 git clone하고 내용 수정하고 git push origin master를 했는데

fatal: couldn't find remote ref master

라는 오류가 발생했다.

 

git remote add origin https://github.com/jujuclub/haha.git
git branch -M main
git push -u origin main

 

깃허브에서 repository를 새로 만들면

예시 코드가 있다.

저 예시 코드를 그대로 복사해서 붙였더니 해결되었다.

내 로컬과 원격과의 연결에서 문제가 생긴 것 같은데

정확히 뭔지는 모르겠다.