git子模块更新-为什么从顶层更新
我一直对此感到困惑:git子模块更新-为什么从顶层更新,git,git-submodules,Git,Git Submodules,我一直对此感到困惑: $ git submodule You need to run this command from the toplevel of the working tree. 为什么我需要从顶级目录运行它?这是一个技术原因,还是仅仅因为一个约定/可能的缺陷?注意:自git 1.8.4(2013年8月)以来,您不必在顶级运行git子模块更新 这是因为有一个新的--前缀选项 --prefix <arg> ——前缀
$ git submodule
You need to run this command from the toplevel of the working tree.
为什么我需要从顶级目录运行它?这是一个技术原因,还是仅仅因为一个约定/可能的缺陷?注意:自git 1.8.4(2013年8月)以来,您不必在顶级运行git子模块更新
这是因为有一个新的--前缀选项
--prefix <arg>
——前缀