嘿,当我尝试克隆存储库时,它说:
fatal: Repository "..." not found
我几乎尝试了解决这个问题的一切,但没有任何作用。现在我让一个同事尝试相同的命令,并在他的电脑上工作。有人可以帮忙吗?
控制台整体控制台输出:
git clone https://github.com/jquery/jquery.git
cloning into 'jquery' ...
fatal: repository 'http://github.com/jquery/jquery.git/' not found
编辑:
我检查了链接,当我将它放入浏览器时打开存储库!我上传了控制台的图片:
编辑:
如果我尝试使用ssh:
git ls-remote git@github.com:jquery/jquery.git
它有效,但它仍然无法使用https,我需要https适用于bower软件包安装!
答案 0 :(得分:0)
您确定使用过https
地址吗?您的错误消息说明了http
遥控器。
答案 1 :(得分:0)
首先,您可以使用以下命令检查存储库是否存在:
git ls-remote https://github.com/jquery/jquery.git
在我的情况下,我得到了这个输出(修剪):
b1b949d35ee995ee75c6968715a7f8c8ea601157 HEAD
e09907ce152fb6ef7537a3733b1d65ead8ee6303 refs/heads/1.12-stable
b14ce54334a568eaaa107be4c441660a57c3db24 refs/heads/2.2-stable
90347a78d69b15a515c462eb378adb7e6067f5dd refs/heads/killphp
b1b949d35ee995ee75c6968715a7f8c8ea601157 refs/heads/master
295d95a1af40a0e278e197591e0e39ef5e96ea91 refs/pull/1/head
1fe579dc1211f6c6a72cfa46610fdd80c67f469f refs/pull/10/head
c04500a8347f381b069c036d9ac24b591b3fc6b7 refs/pull/100/head
6db8223b29fbc305e97e5568e425609ed7289a87 refs/pull/1000/head
195a9be29d0d996fb44be1983f19207a84b1766e refs/pull/1000/merge
ff6319ee7080214ec93ad217dd46ee3af0f606e2 refs/pull/1001/head
81b16266f8c97e4c652688fae4706392496e3f35 refs/pull/1001/merge
3dc0e4c8d46358aae5f171627049bda6b7aa6690 refs/pull/1002/head
0a169f60a540cbd73f964a54fdc52c2e058a3447 refs/pull/1002/merge
245b5f0a92e200b4e58dde9d3b73b70207991a85 refs/pull/1003/head
fe89e8709fc53e9f4d8bb8381944cd35fccd7e09 refs/pull/1003/merge
8ece5ec71e5b41cd8f4f30688e33822dd3d95841 refs/pull/1004/head
020d586a690c4afd8e7e89b66d933f6a11283401 refs/pull/1004/merge
e31189f965843ac450164843cf29f04f3fdf8ad0 refs/pull/1005/head
e48ef5256346efb106411a3bec8c757c2f9eff8e refs/pull/1005/merge
216c02099aebe9302ae356e747cd7a8506c47a55 refs/pull/1006/head
9bb1b1aea92cdf45a9232015b04f47b16a8bfa3a refs/pull/1006/merge
5816980e5d70cda3bdb07adc4bb4f0decf892934 refs/pull/1007/head
ee08ede0cefc1dd427a44307048abf52b5af9e56 refs/pull/1007/merge
4dbe3aeb0cfaba781b51b4c4d3d83db418d009aa refs/pull/1008/head
477310f3e807da101bf6f3420886f50434ac1763 refs/pull/1008/merge
719df2b3fafef0248eeecaf160a3cd6738d9df8b refs/pull/1009/head
我尝试使用http
和https
克隆存储库(在这两种情况下我都能克隆此存储库);我没有遇到你面临的问题。由于您的同事也能够克隆它,我建议检查存储库链接中的任何拼写错误。
答案 2 :(得分:0)
确保您使用的是存储库的根URL。您会看到类似克隆或下载的内容。当您尝试在存储库中克隆子目录时,通常会发生致命错误。