Github clone submodule Permission denied

来源:互联网 发布:带约束的最优化问题 编辑:程序博客网 时间:2024/06/06 10:45
Github上很多开源项目会包含submodule,
git submodule update --init --recursive   出现了如下错误
Cloning into ‘Submodules/LibOrange’…Permission denied (publickey).fatal: Could not read from remote repository.
下面是解决方法,
1、进入项目根目录,vim .gitmodules,找到提示问题的模块LibOrange,修改url = git@github.com:ChatSecure/LibOrange.git为url = https://github.com/ChatSecure/LibOrange.git,:wq保存退出。
2、执行git submodule sync,刷新url,然后再次执行git submodule update –init
0 0
原创粉丝点击