如何将一组本地提交与IDEA中的单个推送结合起来? [英] How to combine group of local commits to single push in IDEA?
问题描述
我有一个要求,即在远程服务器上它看起来像单个动作。
我点击推送并看到下面的窗口
我希望在这里看到压扁的复选框,但没有看到它。
请帮助我。
您可以使用rebase来做到这一点。转至 VCS / Git / Rebase 。然后选择交互式选项。它会告诉你一个提交列表,在那里你可以选择你想压扁的那个。
在你点击开始重新绑定之后,它会提示你为压扁的提交提交消息。完成之后,您可以使用推送对话框推送压缩的提交。
更多关于IntelliJ中rebase的信息是 here 。
In IDEA I am trying to push some commits.
I have a requirement that on remote server it looks like single action.
I click to push and see following window
I expected to see squash checkbox here but don't see it.
Please help me.
You can do it using rebase. Go to VCS/Git/Rebase. Then select Interactive option. It will show you a list of commits, where you can pick which ones you want to squash.
After you hit Start rebasing it will prompt you for a commit message for the squashed commit. After that is done you can push your squashed commit using push dialog.
More information about rebase in IntelliJ is here.
这篇关于如何将一组本地提交与IDEA中的单个推送结合起来?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!