Proper Git workflow for combined OS and Private code?

后端 未结 6 1729
情歌与酒
情歌与酒 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:37

    You can have a 'public' and 'private' branch in your local repository. When you push, each branch gets pushed to a separate remote repository (look up the 'git push' syntax). Then, you can freely merge from public to private.

    I'm sure there's a way you could merge selected changes from private to public, too, though I'd have to look it up.

提交回复
热议问题