How to perform merge?

后端 未结 4 1604
傲寒
傲寒 2021-01-14 20:38

I have a master branch and a feature branch. The feature branch has several changes but the master branch has many changes like removing 10 projects from the repository. The

4条回答
  •  臣服心动
    2021-01-14 20:58

    checkout master
    checkout -b develop (assuming you don't already have a develop branch)
    merge --no-ff your-feature-branch
    

    Resolve any conflicts in code. Test, test test.

    checkout master
    merge --no-ff develop
    

    Then deploy your code.

    I really like this branching model since it always keeps me building features on feature branches, doing final testing on develop. And only ever merging into master. No commits happen on master.

提交回复
热议问题