【问题标题】:Subdirectory from github as a git submodule来自 github 的子目录作为 git 子模块
【发布时间】:2012-08-29 04:13:27
【问题描述】:

github 上的许多 Python 存储库都使用 setuptools 的项目结构(例如 https://github.com/omab/django-social-auth)。 但是我想将带有模块核心的文件夹作为子模块添加到我的项目中。 我可以将远程仓库中的子目录用作我的仓库中的子模块吗?

【问题讨论】:

  • 您能否阐明“我想将带有模块核心的文件夹作为子模块创建到我的项目中”的意思?

标签: git github git-submodules


【解决方案1】:

您可以尝试sparse checkout 以及子模块。

Set Git submodule to shallow clone & sparse checkout?

【讨论】:

    猜你喜欢
    • 2020-12-17
    • 1970-01-01
    • 2015-07-31
    • 2020-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多