How to use git merge --squash?

后端 未结 13 1432
夕颜
夕颜 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:25

    If you have already git merge bugfix on main, you can squash your merge commit into one with:

    git reset --soft HEAD^1
    git commit
    

提交回复
热议问题