为什么我无法在Git中克隆任何存储库? [英] Why can't I clone any repository in Git?

查看:336
本文介绍了为什么我无法在Git中克隆任何存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用git,出于某种原因,现在每次我克隆ANY repo时,我都会得到这个错误。

  git clone https://github.com/ryanb/cancan.git 
/ Users / tamer /Desktop/paypal_adaptive/cancan/.git/
中初始化的空Git存储库错误:请求的URL返回错误:403 while访问
https://github.com/ryanb/cancan.git/info/refs

致命错误:HTTP请求失败

我不管什么回购....公共或私人..我的Mac上有一个设置/文件,我需要改变,使这项工作再次。顺便说一句,我在Mac / Snow Leopard上解决方案

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


您也可以尝试使用git协议,而不是http。



pre $ g $ clone git: c>

http支持在1.7+中有很大改进,这可能是您的问题。



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.

这篇关于为什么我无法在Git中克隆任何存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆