Proper Git workflow for combined OS and Private code?

后端 未结 6 1730
情歌与酒
情歌与酒 2020-12-17 18:14

I have a closed source project that is built on my open source framework. I want to know how I should structure my workflow. Below is my best guess using git with submodules

6条回答
  •  自闭症患者
    2020-12-17 18:36

    There's two approach here:

    1. You could use branch's of the same git repo. In your private repo create a branch with a reference to your public repo and handle both like that.

    2. If the components using in your private project are sub-project of your public stuff, then you should use submodules. The handling of submodule is in a kind-of early stage on git at version 1.6.6, but could be useful as your using subproject.

    What is seems to me you can't loose if which project tribute to each project, so if you have that clear, then no matter what you choose it'll work !!!!!!. Besides git is easy.

提交回复
热议问题