如何将一组本地提交与IDEA中的单个推送结合起来? [英] How to combine group of local commits to single push in IDEA?

查看:398
本文介绍了如何将一组本地提交与IDEA中的单个推送结合起来?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆