自动下载GitHub子模块 [英] Include a GitHub submodule automatically in download

查看:623
本文介绍了自动下载GitHub子模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GitHub仓库,并使用另一个项目作为子模块。这个子模块也位于 .gitmodules 中,代码如下:

I have a GitHub repository and use another project as a submodule. This submodule is also in .gitmodules, the code below:

[submodule "inc/tha"]
    path = inc/tha
    url = git://github.com/zamoose/themehookalliance.git

另请参阅GitHub上的视图。

See also in view on GitHub.

如何才能使它从GitHub下载我的存储库还将包含子模块中的文件?

How can I make it so downloading my repository from GitHub will also include the files from the submodule?

推荐答案

这个(包含带GitHub zip或tarball下载的子模块: Nodeload服务)目前还不支持,如 this thread

This (include the submodule with a GitHub zip or tarball download: the Nodeload service) isn't currently supported, as mentioned in this thread.

此脚本修订版将通过多次调用包括子模块创建zip本身/ user / repo / zipball / branchrel =noreferrer> https://nodeload.github.com/user/repo/zipball/branch

This script revision would make the zip itself from a GitHub repo, including submodules, through multiple calls to https://nodeload.github.com/user/repo/zipball/branch.

这篇关于自动下载GitHub子模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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