How to integrate a GitHub wiki into the main project

前端 未结 3 1242
陌清茗
陌清茗 2020-12-02 14:22

I want keep all my source code and documentation in one single git repository. I already have the github pages integrated into my main project and now I want to do the same

3条回答
  •  抹茶落季
    2020-12-02 14:54

    You want to add the wiki as a submodule. Same Wiki git repo connected as a remote, but within a subdirectory with its own .git dir.

    git submodule add git://github.com/you/proj.wiki
    

    In the root of your main repo to add the wiki repo as a submodule in the wiki/ dir.

提交回复
热议问题