슬기로운 연구생활

Missing or invalid credentials. 본문

슬기로운 에러 생활

Missing or invalid credentials.

vhrehfdl 2022. 11. 23. 09:49

에러 메시지 : Missing or invalid credentials.

error: src refspec master does not match any.

 

에러 원인 : 기존의 git repo를 clone하고 다른 새로운 repo에 push 하려고 하니 에러가 발생했다.

git remote 원격 주소를 삭제하고 email과 password를 다시 등록했는데도 에러가 발생했다.

 

해결 방법 : 확인해보니 터미널을 껏다 키면 해결이 되는 문제였다.

너무 사소한 문제라서 어이가 없었다.

git remote remove origin
git remote add origin [주소]
git remote -v
git config --global user.name [아이디]
git config --global user.password [비밀번호]
git push -u origin master
Comments