2017-08-22 137 views
-1

嘿,當我嘗試克隆它說,一個存儲庫:Git的致命錯誤,而克隆

fatal: Repository "..." not found

我tryed幾乎所有來解決這個問題,但沒有任何工程。現在我要求一個同事嘗試相同的命令,並在他的電腦上工作。有人可以幫忙嗎?

控制檯整個控制檯輸出:

git clone https://github.com/jquery/jquery.git 
cloning into 'jquery' ... 
fatal: repository 'http://github.com/jquery/jquery.git/' not found 

編輯:

我檢查的聯繫,當我把它放到我的瀏覽器打開它的倉庫!我上傳的控制檯的一個畫面: enter image description here

編輯:

如果我嘗試它絲毫SSH:

git的LS-遠程[email protected]:jQuery的/ jquery.git

它的工作原理,但它仍然不工作惠普HTTPS,我需要該HTTPS的涼亭包安裝!

+0

你確定這是真正的命令和輸出嗎?我問,因爲你顯示的git clone命令確實有效。確保對拼寫錯誤進行雙重檢查和三重檢查。 –

+1

你使用的是什麼版本的git?這看起來不像使用我熟悉 –

+1

btw的版本的git命令的完整輸出,我會尋找網絡問題。 (Bad etc/hosts entry?DNS問題?連接到github.com的問題?) –

回答

0

確定您已經使用了https地址?您的錯誤消息說明http遠程。

+0

在我的克隆命令iam執行https,但不知何故它返回錯誤中的http!會是這樣嗎?我該如何改變這種情況? – Tim

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 

我試圖克隆庫與httphttps(在這兩種情況下,我能克隆這個存儲庫);我沒有遇到你面臨的問題。既然你的同事也能夠克隆它,我會建議檢查存儲庫鏈接中的任何拼寫錯誤。

+0

我複製粘貼你的命令,它說同樣的錯誤!我也執行命令whit https。但在錯誤返回http! – Tim

+0

您可以將所有嘗試的全部輸出再次粘貼到pastebin或其他東西上嗎?我認爲這可能是一個網絡問題,正如Mark Adelsberger在評論中提到的那樣。 –

+0

你可以在我編輯的問題上看到它 – Tim