Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git克隆-致命:远程错误:访问被拒绝或存储库未导出_Git_Github_Github For Mac - Fatal编程技术网

git克隆-致命:远程错误:访问被拒绝或存储库未导出

git克隆-致命:远程错误:访问被拒绝或存储库未导出,git,github,github-for-mac,Git,Github,Github For Mac,当我尝试执行以下命令时,git clonegit://github.com/mainDir/dirA,我得到以下错误: > git clone git://github.com/mainDir/dirA Cloning into 'dirA'... fatal: remote error: access denied or repository not exported: /8/nw/87/1e/aa/2154553/2154553.git git://github.com/mainDi

当我尝试执行以下命令时,
git clonegit://github.com/mainDir/dirA
,我得到以下错误:

> git clone git://github.com/mainDir/dirA
Cloning into 'dirA'...
fatal: remote error: access denied or repository not exported: /8/nw/87/1e/aa/2154553/2154553.git
git://github.com/mainDir
是一个
私有存储库

如果我尝试在mac上使用github。。。我看到消息
找不到存储库

确保问题在我的桌面(客户端部分),因为我知道如何重现问题:

1)
git clone repo
在我的桌面上(它可以工作)
2)
rm-rf回购

3)
git clone repo
我得到了错误


如何解决此问题?

它实际上是一个私有存储库吗?如果是这样,我不相信

git clone git://github.com/mainDir/dirA
会有用的。试一试

git clone git@github.com:mainDir/dirA
发件人:

对于公共回购,URL可以是只读URL,如git://github.com/user/repo.git 或者类似的HTTP只读URL。对于您拥有或是其合作者的公共回购,以及所有私有回购,必须使用私有ssh url,如git@github.com:user/repo.git

只需尝试使用:

git clone http://github.com/mainDir/dirA


这是另一个现实问题:

git克隆git://github.com/mainDir/dirA

看起来更像是试图只克隆
mainDir
存储库的子文件夹,GIT出于保存存储库完整性的原因拒绝此功能。因此,请改为克隆:

git克隆git://github.com/mainDir


然后查找所需的子文件夹

今天这发生在我身上,当时我移除了某个回购协议的分支,该协议在前一天与上游网络分离。然后,我在同一个账户下对上游进行了重新分配

首先,它向我展示了

Forking org_name/repo_name
It should only take a few seconds.
比平常长

然后,它被卡住了

This repository is temporarily unavailable.
The backend storage is temporarily offline. Usually this means the storage server is undergoing maintenance. Please contact support if the problem persists.

Check our status site for updates
在分叉回购页面上

所以我在一段时间后把它取了下来,等了几个小时,又用叉子叉了起来


我认为,这是由于GitHub最终的一致性而产生的一些竞争条件。

可能是的,但当我检查它时,它没有显示在那里:)
This repository is temporarily unavailable.
The backend storage is temporarily offline. Usually this means the storage server is undergoing maintenance. Please contact support if the problem persists.

Check our status site for updates