代码之家  ›  专栏  ›  技术社区  ›  khelll

Git子模块错误

  •  2
  • khelll  · 技术社区  · 15 年前

    获取此错误:

    fatal: cannot read object aab1ca8db3ab8f1508db42220f9badc7b62dd4aa 'vendor/plugins/simple_stuff': It is a submodule!
    

    什么时候做 git pull 从主回购。 我没有定义任何子模块在我的项目中的任何位置,但是我在内部还有另一个repo vendor/plugins/simple_stuff . 有什么想法吗?

    1 回复  |  直到 15 年前
        1
  •  1
  •   VonC    15 年前

    读完后 git submodules gotcha “文章,你尝试过

     $ git pull -s resolve
    

    (“解决”合并策略可以避免该消息)
    (可能有人重新组织了源代码并定义了子模块,将其推送到您正在尝试从中提取的远程repo)