git clone: ​​"remote: 찾고 있던 네임스페이스를 찾을 수 없습니다." ... "치명적: 원격 저장소에서 읽을 수 없습니다."

git clone: ​​"remote: 찾고 있던 네임스페이스를 찾을 수 없습니다." ... "치명적: 원격 저장소에서 읽을 수 없습니다."

GitLab에서 테스트 저장소를 복제하려고 할 때 다음 오류가 발생했습니다.

C:\Users\USERNAME\Documents\MYPROJECT\test>git clone [email protected]:GITUSERNAME\test.git
Cloning into 'test'...
remote:
remote: ========================================================================
remote:
remote: The namespace you were looking for could not be found.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

답변1

Windows 경로 구분 기호 "\"를 URL 구분 기호 "/"와 혼동하는 다른 사람들을 위해 이 어리석은 오류를 공유하고 싶습니다.

대신에

git clone [email protected]:GITUSERNAME\test.git

당신은 필요

git clone [email protected]:GITUSERNAME/test.git

와 함께 "/".

너무 당연해 보일 수도 있지만 그것을 깨닫는 데는 시간이 좀 걸렸습니다.

나중에 추가:

또 같은 오류가 발생했지만 다른 이유로 인해 여전히 잘못된 URL이었습니다. 나는 노력했다

git clone ssh://[email protected]:GITUSERNAME/test.git

비록 내가 필요했지만 :

git clone [email protected]:GITUSERNAME/test.git

관련 정보