gpt4 book ai didi

git - 主 git 存储库中有多个 GitBooks?

转载 作者:行者123 更新时间:2023-12-05 07:47:29 25 4
gpt4 key购买 nike

我打算使用 GitBook用于发布大型项目的用户/系统文档。文档被组织为独立书籍的集合,预计将在主 git 存储库中进行管理,例如:

- root
- sources
- books
- tutorial
- assets
- section-1
- …
- reference
- …

是否可以将每本书目录同步到一个独立的GitBook仓库?

奖励:让每个 GitBook 存储库自动镜像主存储库的分支/标记结构是否可行?

最佳答案

sync each book directory to an independent GitBook repository?

如果每本书都在自己的文件夹中,则可以声明为 submodule

is it feasible to have each GitBook repository automatically mirror the branching/tagging structure of the main repository?

不完全是:子模块不知道父仓库。但是你可以configure a submodule to follow one of its branches .

这允许从父仓库中执行:

git submodule update --remote

这将从分支获取最新的,然后是每个子模块。

关于git - 主 git 存储库中有多个 GitBooks?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39654496/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com