COMMIT_EDITMSG open when commit in VSCode

COMMIT_EDITMSG is a file which VSCode opens when you do not provide commit message in the Source Control plugin box –

Commit message box in VSCode

The COMMIT_EDITMSG file looks like this –

COMMIT_EDITMSG file in vscode

Here you can write your commit message at the top.

If you don’t want this file to open up, you can turn the setting off in VSCode from here –

Use editor as commit input in vscode

Uncheck Use Editor As Commit Input setting and the file will not open anymore. You can find this – Settings -> Extensions -> Git

You can also use command line git.useEditorAsCommitInput to turn it off.