关闭

git submodule update failed

标签: submodulegit
11873人阅读 评论(1) 收藏 举报

今天试用git submodule, 出现了错误

fatal: Needed a single revision
解决方法如下:


http://www.gostai.com/downloads/urbi-sdk-2.0/doc/urbi-sdk.htmldir/faq.html#x22-10400014.1.4

14.1.4 git: fatal: Needed a single revision

You may experience something like this:

 
$ git submodule update --init 
fatal: Needed a single revision 
Unable to find current revision in submodule path gnulib
    

this is the sign that the initial checkout of ‘gnulib’ went completely wrong (I don’t know what makes this happen). Chances are that the directory exists, but is empty. Git does not seem to be able to overcome this situation, so:

 
$ rm -rf gnulib 
$ git submodule update --init
    







0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:887992次
    • 积分:8452
    • 等级:
    • 排名:第2390名
    • 原创:189篇
    • 转载:90篇
    • 译文:1篇
    • 评论:214条
    文章分类