git clone不会下载所有内容 [英] git clone doesn't download everything

查看:146
本文介绍了git clone不会下载所有内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用git clone从存储库下载所有内容?带有特殊符号(如下所示)的文件夹不会被下载.

How can I download everything fom a repository using git clone? Folders that have a special symbol (shown below) aren't being downloaded.

我环顾四周,看到了这个命令,但对我来说却没有用.还有什么其他选择?

I looked around and saw this command but it didn't work out for me. What other options are there?

for remote in `git branch -r`; do git branch --track $remote; done

推荐答案

这些看起来好像是

Those look as if they are probably git submodules. Assuming that's the case, you can either clone the repository like this:

git clone --recursive REPO_URL

或者,从已经克隆的存储库内部:

Or, from inside the already cloned repository:

git submodule init
git submodule update

无论如何,一定要阅读我链接的文档,以了解子模块的状况.

In any case, definitely read the documentation I linked to to understand what is going on with submodules.

这篇关于git clone不会下载所有内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆