Git PhpStorm - 无法关闭提交对话框

Git PhpStorm - cannot close commit dialog

这是一个非常简单的场景。在 PhpStorm v2018.3 中使用 git,如果我提交任何内容,那么那里的内置终端会说它正在等待用户关闭对话框现在弹出。对话框 window 弹出,让我添加一条关于提交的消息。在消息对话的末尾,我看到了以下几行:

^G Get Help      ^O Write Out     ^W Where Is      ^K Cut Text      ^J Justify       ^C Cur Pos       M-U Undo         M-A Mark Text    M-] To Bracket
^X Exit          ^R Read File     ^\ Replace       ^U Paste Text    ^T To Spell      ^_ Go To Line    M-E Redo         M-6 Copy Text    ^Q Where Was

我同时输入了 ^Xexit,然后按下 Enter 键,但对话框 window 没有关闭。我怎样才能关闭它?

编辑: 我在上述场景中添加了 PhpStorm 编辑器的屏幕截图。 在新标签页中打开图片以大视图查看。

您似乎在使用默认编辑器设置 (GNU nano). You can change the default editor to the editor which you are comfortable with (See here) 的 git-for-windows。

要退出 GNU nano 编辑器,您需要使用组合键 Ctrl+X

GNU nano 编辑器的 documentation 声明:

Commands are given by using the Control key (Ctrl, shown as ^) or the Meta key (Alt or Cmd, shown as M-).

对此,

after using Ctrl+X, I got the message : 'Save modified buffers ?' with Yes . No and cancel option. I opted for Yes and the dialogue window disappeared ? What do the 3 options mean actually ?

它基本上是在询问您是否要保存更改(在文件编辑器中所做的更改)。如果你选择 Yes 它会,如果你选择 No 它不会,如果你选择 Cancel 它会返回给编辑器。