Middle-ground between submodules and branches?

前端 未结 2 1847
我在风中等你
我在风中等你 2020-12-22 02:38

I just got around creating topic branches for my project\'s unfinished features, managed by Git. They are all very self-contained in such a way, that one topic branch doesn\

2条回答
  •  一生所求
    2020-12-22 03:28

    Lets say you have branch master and bunch of branches: feature1, feature2, feature3...

    $ git checkout feature1
    $ git branch master-with-feature1
    $ git checkout master-with-feature1
    $ git merge master
    

    Any time you make any changes to master or feature1 you can checkout to master-with-feature1 and merge them.

提交回复
热议问题