![git clone: 「リモート: 探している名前空間が見つかりませんでした。」...「致命的: リモート リポジトリから読み取れませんでした。」](https://rvso.com/image/1645720/git%20clone%3A%20%E3%80%8C%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%3A%20%E6%8E%A2%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%90%8D%E5%89%8D%E7%A9%BA%E9%96%93%E3%81%8C%E8%A6%8B%E3%81%A4%E3%81%8B%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%E3%80%8D...%E3%80%8C%E8%87%B4%E5%91%BD%E7%9A%84%3A%20%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%20%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E3%81%8B%E3%82%89%E8%AA%AD%E3%81%BF%E5%8F%96%E3%82%8C%E3%81%BE%E3%81%9B%E3%82%93%E3%81%A7%E3%81%97%E3%81%9F%E3%80%82%E3%80%8D.png)
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