How to use git merge --squash?

后端 未结 13 1434
夕颜
夕颜 2020-11-22 05:41

I have a remote Git server, here is the scenario which I want to perform:

  • For each bug/feature I create a different Git branch

  • I keep on com

13条回答
  •  礼貌的吻别
    2020-11-22 06:12

    You can use tool I've created to make this process easier: git-squash. For example to squash all commits on feature branch that has been branched from master branch, write:

    git squash master
    git push --force
    

提交回复
热议问题