본문 바로가기

소프트웨어 /그 외

[GitLab]Error : Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

반응형

요며칠동안 깃랩에 소스를 몇번을 올렸는데

clone with ssh 주소를 이용해

깃 저장소로 커밋을 하고 푸시를 할 때 다음과 같은 에러를 많이 만났다

 

Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.

 

처음 에러를 확인 했을 때 ssh키를 할당하지 않아서 하는 문제였다.

그런데 ssh를 설정해 주었는데도 똑같은 에러가 발생한다.

 

그럴 땐 ssh주소가 아닌 https 주소를 이용하여 보자.

remote를 만든 주소가 origin이라면

 

git remote set-url origin (해당주소) 

 

를 입력하여 url을 변경하여 주고 

 

git push -u origin --all

 

을 이용해 푸시해주면 된다.

 

깃 연동하다 머리가 터질거같다.....