git clone: ​​„remote: Der gesuchte Namespace konnte nicht gefunden werden.“ … „schwerwiegend: Aus Remote-Repository konnte nicht gelesen werden.“

git clone: ​​„remote: Der gesuchte Namespace konnte nicht gefunden werden.“ … „schwerwiegend: Aus Remote-Repository konnte nicht gelesen werden.“

Beim Versuch, mein Test-Repo von GitLab zu klonen, habe ich den folgenden Fehler erhalten.

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.

Antwort1

Ich möchte diesen dummen Fehler nur mit allen teilen, die den Windows-Pfadtrenner "\" mit dem URL-Trennzeichen "/" verwechseln:

Anstatt

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

du brauchst

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

mit "/".

Es mag so offensichtlich erscheinen, aber es hat eine Weile gedauert, bis mir das klar wurde.

Spätere Ergänzung:

Ich hatte wieder den gleichen Fehler, aber wegen einer anderen Sache, und trotzdem war es nur eine falsche URL. Ich habe versucht

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

obwohl ich brauchte:

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

verwandte Informationen