简体   繁体   中英

Why can't I clone any repository in Git?

I use git all the time and for some reason now every time i clone ANY repo i get this error

 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

I doesnt matter what repo....public or private..is there a setting/file on my mac that i need to change to make this work again. BTW I am on a mac/snow leopard

It looks like this is a known issue:

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

You can also try using the git protocol, instead of http.

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

http support was much improved in 1.7+ and that may be your problem.

try this:

git config --global http.sslverify "false"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM