Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I clone any repository in Git?

Tags:

git

github

macos

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

like image 323
Matt Elhotiby Avatar asked Jul 03 '11 12:07

Matt Elhotiby


People also ask

Why can I not clone a git repository?

If you see this error when cloning a repository, it means that the repository does not exist, you do not have permission to access it, or your GitHub Enterprise Server instance is in private mode.

Can you clone any git repository?

Repositories on GitHub are remote repositories. You can clone or fork a repository with GitHub Desktop to create a local repository on your computer. You can create a local copy of any repository on GitHub that you have access to by cloning the repository.


1 Answers

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.

like image 114
Luke Girvin Avatar answered Sep 18 '22 17:09

Luke Girvin