Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git没有';t克隆所有目录_Git_Github - Fatal编程技术网

Git没有';t克隆所有目录

Git没有';t克隆所有目录,git,github,Git,Github,我尝试克隆存储库 git clone https://github.com/tiagomazzutti/antlr4dart 但子目录antlr4dart/antlr4dart runtime保持为空。所有其他文件都按照我的预期进行了克隆。我做错了什么 谢谢,Michael您需要添加(在git克隆之后): GitHub repo中的灰色“antlr4dart runtime”文件夹是一个,其中包含一个引用该文件夹的文件夹。您需要添加(在git克隆之后): GitHub repo中的灰色“ant

我尝试克隆存储库

git clone https://github.com/tiagomazzutti/antlr4dart
但子目录antlr4dart/antlr4dart runtime保持为空。所有其他文件都按照我的预期进行了克隆。我做错了什么

谢谢,Michael

您需要添加(在git克隆之后):

GitHub repo中的灰色“
antlr4dart runtime
”文件夹是一个,其中包含一个引用该文件夹的文件夹。

您需要添加(在
git克隆之后)


GitHub repo中的灰色“
antlr4dart runtime
”文件夹是一个,它引用了该文件夹的名称。

克隆后,您必须跳入目录:

cd antlr4dart
要克隆目录的所有子模块,请执行以下操作:

git submodule update --init
对于Git的1.6.5版及更高版本,您可以使用:

git clone --recursive git://github.com/foo/bar.git

克隆后,您必须跳入目录:

cd antlr4dart
要克隆目录的所有子模块,请执行以下操作:

git submodule update --init
对于Git的1.6.5版及更高版本,您可以使用:

git clone --recursive git://github.com/foo/bar.git

嘿,如果我必须更新特定分支的子模块,那么命令是什么?嘿,如果我必须更新特定分支的子模块,那么命令是什么?