Permission denied while cloning the repo
asdas1505 opened this issue · comments
Following is the message shown after cloning
Please make sure you have the correct access rights and the repository exists.
fatal: clone of 'git@github.com:ReScience/template.git' into submodule path 'D:/ MLRC Submission/Camera Ready/RC-2020/template' failed Failed to clone 'template'. Retry scheduled Cloning into 'D:/MLRC Submission/Camera Ready/RC-2020/template'...
git@github.com: 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:ReScience/template.git' into submodule path 'D:/ MLRC Submission/Camera Ready/RC2020/template' failed
Failed to clone 'template' a second time, aborting
This is strange.. can you try cloning through https? git clone https://github.com/ReScience/RC-2020.git --recursive
?
Yes, this type of message is common in the git@
protocol, all you need to do is type 'yes'. If it doesn't work, please edit the .gitmodules file (https://github.com/ReScience/RC-2020/blob/main/.gitmodules) and replace the following line:
[submodule "template"]
path = template
url = https://github.com/ReScience/template.git
Read this too - hope this helps.
Modifying .gitmodules helped. Thanks