Permission denied (publickey). fatal: Could not read from remote repository. Pleasemake sure you h

来源:互联网 发布:图书馆管理系统 uc矩阵 编辑:程序博客网 时间:2024/06/05 18:44

执行 git submodule update --init  时出错:


正克隆到 'protobuf'... Permission denied (publickey). fatal: Could not read from remote repository.  

Pleasemake sure you have the correct access rights and the repository exists.


解决办法:

进入项目根目录:

sudo gedit .gitmodules

将对应项的git url,替换为https方式

如:将url = git@github.com:google/protobuf 改为https://github.com/google/protobuf.git

阅读全文
0 0