Git merge testing branch (final commit) to master branch

后端 未结 3 1405
遇见更好的自我
遇见更好的自我 2020-12-15 13:39

I have created a testing branch. It has a lot of tiny commits to build one feature. At the end of it, I want to take the final completed changes, and put them into the maste

3条回答
  •  粉色の甜心
    2020-12-15 14:11

    git checkout master
    git merge --squash testing-branch
    

    That --squash will put your working set in the state as if all the changes on testing-branch got merged in with master, but won't create any commits. You can then do git commit and all the changes will go in in a single commit.

提交回复
热议问题