728x90
반응형
기존에 clone 해두었던 repository 에서 최근 소스를 받기 위해 git pull을 했을 때 아래와 같은 에러가 발생
$ git pull
remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
아마 git URL이 변경되어 발생하는 것으로 볼 수 있으며 아래 명령어로 변경된 URL을 설정하여 정상화 할 수 있다.
먼저 git remote 명령어를 통해 origin 주소를 확인하고 변경된 주소로 설정 한다.
remote 주소 확인
$ git remote -v
origin git@github.com:kgmhk/develop.git (fetch)
origin git@github.com:kgmhk/develop.git (push)
remote 주소 변경
$ git remote set-url origin https://github.com/kgmhk/develop-new.git
변경 이후 git repository에서 정상적으로 pull 가능 확인
728x90
반응형
'Programming > Git' 카테고리의 다른 글
[git] git push 되돌리기 - reset (0) | 2021.11.25 |
---|---|
[Git] git push error - 토큰 인증 (Please use a personal access token instead) (0) | 2021.11.25 |
Set a new git repository (63) | 2019.08.01 |
[Git] Add git branch (0) | 2019.08.01 |
[Git] Delete git branch (0) | 2019.08.01 |
댓글