Intellij - How to squash local branch only

前端 未结 2 522
情书的邮戳
情书的邮戳 2021-02-05 08:56

When using Git inside of Intellij, how do I squash all of my commits for a local branch? What settings do I use in the rebase branch window?

I\'ve tried setting the Onto

2条回答
  •  星月不相逢
    2021-02-05 09:33

    If you want something like "git merge -squash" means merge a branch to another branch (possibly "master") with one commit contains all of the changes, you can use "Merge Changes..." option in Intellij. Just double press shift and type "Merge Changes". In the opened dialog select what branch you want to merge and then select "Squash commit" option.

提交回复
热议问题