不能在我的本地仓库中使用git子模块

时间:2017-05-04 11:11:41

标签: git

我公司的同事创建了一个位于原点内的子模块,我被要求git submodule initgit submodule update让子模块在本地同步,但我没有这样做 - 每当我运行git submodule update它说

Cloning into 'blablabla'...
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
fatal: clone of 'git@github.com:<organisation>/testing-tools' into submodule path '<root>/testing/testing-tools' failed
Failed to clone 'testing/testing-tools'. Retry scheduled
Cloning into '<root>testing/testing-tools'...
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

但是,当我git clone git@github.com:<organisation>/testing-tools.git在root之外时,它很好,这意味着SSH密钥正在工作,我可以访问子模块的存储库。

当前版本的Git是2.11.0.windows.3。

有什么想法吗?

祝你好运, 泰海

0 个答案:

没有答案