Git/IntelliJ 中的更改列表是什么以及如何摆脱它?

What is changelist in Git/IntelliJ and how to get rid of it?

如果我在 IntelliJ 中使用 Git 提交代码,我会看到以下对话框:

如您所见,它已将 Change list 设置为 "Recovering from unsuccessfull..."。这是我的标题,很久以前创建的,我不知道怎么用。

所以,我想从对话框中删除这个标题。

但是如果我把它改成"Default",然后我就空了window:

所有这些是什么意思以及如何摆脱旧的更改列表标题,仍然能够提交代码?

What all these things mean and how to get rid of old change list title, still being able to commit code?

首先,您应该将更改从旧更改列表移至默认更改列表。为此,请转到 View | Tool Windows | Version Control 或按 Alt + 9 in windows:

版本控制面板
然后 select 旧的更改列表标题并将其拖到默认标题或使用 移动到另一个更改列表 按钮。将更改移动到默认更改列表后,只需右键单击旧的更改列表和 select Delete 选项。

What is changelist in Git/IntelliJ and how to get rid of it?

查看 Changelist and Managing Changelist 上的 IntelliJ 文档。