首页 > 其他 > 详细

already exists in the index

时间:2015-10-01 07:04:46      阅读:3656      评论:0      收藏:0      [点我收藏+]
在 github 上面 clone 一个包含有 submodule 的 repo 的时候,用如下命令更新 submodule:

git submodule update --remote --merge

一直没法更新,尝试重新 add submodule,比如:

git submodule add  https://github.com/cisco/openh264 open_source_code/openh264

一直报如下错误:

open_source_code/openh264 already exists in the index

执行如下命令,解决此问题:

git rm -r --cached open_source_code/openh264

already exists in the index

原文:http://my.oschina.net/jerikc/blog/513039

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!