gitvisual-studio-code

How can I cancel a git commit while VS Code is waiting for the commit message in an editor tab?


I'm testing the Visual Studio Code's source control, and I recklessly hit the "Commit" button; now it's waiting for me to enter the commit message:

Enter image description here

It is like a loading or waiting motion. It's waiting for me to enter the commit message.

Is there a way to cancel and terminate the whole commit process in this situation?


Solution

  • Just close the COMMIT_EDITMSG tab. It should cancel the commit ;)