没有GIT clone子模块的权限

时间:2016-03-18 05:04:00

标签: git github

我做了以下

git clone --recursive https://github.com/XXXX-Lab/bootcamp_XXXX.git

存储库是我有权访问的私有存储库。但是,存储库在另一个存储库中有一个子模块(我没有访问权限)

每个repos

都提示我输入两次git用户名密码

克隆子模块以外的所有东西。

有了这个

Cloning into 'bootcamp_XXXX'...

Username for 'github.com': XXXX

Password for 'XXXX@github.com': 

remote: Counting objects: 830, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 830 (delta 0), reused 0 (delta 0), pack-reused 828
Receiving objects: 100% (830/830), 14.66 MiB | 3.87 MiB/s, done.
Resolving deltas: 100% (410/410), done.
Checking connectivity... done.
Submodule 'XXXX_TUTORIAL' (github.com/XXXX_TUTORIAL/XXXX_TUTORIAL.git) registered for path 'XXXX_TUTORIAL'

Cloning into 'XXXX_TUTORIAL'...

Username for 'github.com': XXXX

Password for 'XXXX@github.com': 

remote: epository not found.
fatal: repository github.com/XXXX_TUTORIAL/XXXX_TUTORIAL.git not found

Clone of 'github.com/XXXX_TUTORIAL/XXXX_TUTORIAL.git' into submodule path 'XXXX_TUTORIAL' failed

问题

我是否需要访问子模块的存储库。有没有办法克隆它,因为我已经可以访问主存储库。

谢谢!

1 个答案:

答案 0 :(得分:0)

您需要显式访问子模块。访问主存储库是不够的。