【问题标题】:Git Submodule fatal reference is not a treeGit子模块致命引用不是一棵树
【发布时间】:2018-03-05 18:40:46
【问题描述】:

嗨,我收到fatal: reference is not a tree: 947a3c67349eb242a8d46d576e544f8129b28cbf Unable to checkout '947a3c67349eb242a8d46d576e544f8129b28cbf' in submodule path 'modules/webform'

我的工作站如下:

[root]:
   .gitmodules
   /modules/webform

在 .gitmodules 我有:

[submodule "modules/webform"]
        path = modules/webform
        url = https://git.drupal.org/project/webform.git

我进入了模块/webform 和git pull 我也进入了git submodule sync,这给了我Synchronizing submodule url for 'modules/webform'。我什至硬重置了那个目录。我想知道是否有办法删除该引用/重置为最新版本?当我git log 时,它告诉我参考是bad object

【问题讨论】:

    标签: git-submodules git-subtree


    【解决方案1】:

    我必须更新我的git --version。我用的是 1.7,最新的是 2.1 什么的。

    【讨论】:

      猜你喜欢
      • 2011-10-05
      • 1970-01-01
      • 2012-11-05
      • 1970-01-01
      • 2015-12-20
      • 2018-10-18
      • 2014-08-19
      • 1970-01-01
      • 2018-07-02
      相关资源
      最近更新 更多