I was using git in JetBrains IDE WebStorm terminal (based on Windows PowerShell). While trying to commit without a message, I got this message:
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
I tried searching how to exit that, but nothing worked (ESC -> :wq or ctrl+c -> ctrl+x or other editor commands, but since I never set the editor, it should be Vim). I guess that's because when I press ESC, IDE escapes the terminal and throws me to code editing window, and the editor never gets to read that ESC.
Is there any way to exit, or I have to restart the terminal?
(Please don't tell me how to change default editor, I definately will do this later)