2011-07-03 57 views
11

我使用git所有的時間和我的每一次克隆現在一些原因,任何回購我得到這個錯誤爲什麼我無法在Git中克隆任何存儲庫?

git clone https://github.com/ryanb/cancan.git 
Initialized empty Git repository in /Users/tamer /Desktop/paypal_adaptive/cancan/.git/ 
error: The requested URL returned error: 403 while accessing 
https://github.com/ryanb/cancan.git/info/refs 

    fatal: HTTP request failed 

我不事關什麼回購....公共或private..is有一個設置/文件在我的Mac上,我需要改變以使這項工作再次。順便說一句,我在Mac /雪豹

+0

其中的Git版本您使用的? – hammar

+0

git版本1.6.4.2 – Trace

+0

如何更新我的git版本....我似乎無法找到有關此文檔 – Trace

回答

18

它看起來這是一個已知的問題:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=341221

您也可以嘗試,而不是http使用Git協議。

git clone git://git.eclipse.org/gitroot/e4/org.eclipse.orion.client.git 

http支持在1.7+中得到了很大的改進,這可能是您的問題。

1

試試這個:

git config --global http.sslverify "false" 
+0

全局應用這是一個糟糕的主意:它修復了這個特殊問題,因爲它的安全性相當高。 'git config http.sslVerify「false」'對於特定的回購是最大的我會做的。 – jotaen