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

und*_*666 8 git github github-for-mac

当我尝试执行以下命令时git clone git://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
Run Code Online (Sandbox Code Playgroud)

git://github.com/mainDir 是一个 private repository

如果我尝试使用github作为mac ...我看到了消息Cannot find repository.

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

1)git clone repo在我的桌面上(它工作)
2)rm -rf repo
3)git clone repo我得到错误

我该如何解决这个问题?

ngm*_*ngm 9

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

git clone git://github.com/mainDir/dirA
Run Code Online (Sandbox Code Playgroud)

将工作.尝试

git clone git@github.com:mainDir/dirA
Run Code Online (Sandbox Code Playgroud)

来自github的帮助:

对于公共存储库,URL可以是只读URL,如git://github.com/user/repo.git,也可以是HTTP只读URL,如http://github.com/user/repo.git.对于您拥有或是合作者的公共回购,以及所有私人回购,您必须使用私人ssh网址,如git@github.com:user/repo.git.