问题描述
我无法克隆我的私人git存储库中存在的子模块。我确实可以访问整个存储库,
已经使用了下面的命令但dint可以工作,请帮助在现有存储库中克隆子模块的正确方式。
djrecker $ git submodule update --init --recursive
注册路径'App'的子模块'Path'(git@github.com:Path)
克隆到'路径'...
权限被拒绝(公钥)。
致命:无法从远程存储库读取。
感谢
Djrekcer
我面临同样的问题。问题出在你的github回购上,你可能会使用一些旧的ssh密钥。
您需要更新当前的ssh密钥。
涉及的步骤是:
1. vim〜/ .ssh / id_rsa.pub
2.复制ssh密钥
3.转到github设置
4.选择选项ssh键
5.删除不再使用的旧ssh密钥。
6.添加一个新的ssh密钥。
7.尝试运行git submodule update --recursive
这对我有效!!
I am not able to clone the submodule existing within my private git repository. I do have access to entire repository,
Have used the below commands but dint work, please help what is the right way to clone the submodules in existing repository.
djrecker$ git submodule update --init --recursiveSubmodule 'Path' (git@github.com:Path) registered for path 'App'Cloning into 'Path'...Permission denied (publickey).fatal: Could not read from remote repository.
ThanksDjrekcer
I was facing the same issue. The problem was on your github repo , you might be using some old ssh key.
You need to update the current ssh key.
Steps involved are:
1. vim ~/.ssh/id_rsa.pub
2. copy the ssh key
3. Go to the github settings
4. Select the option ssh keys
5. Remove the old ssh keys not used anymore.
6. Add a new ssh key.
7. Try running the "git submodule update --recursive"
This worked for me !!
这篇关于Git子模块 - 权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!