Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the COMMIT_EDITMSG open when I try to commit in vscode?

Up until now, I can commit all my changes without any complications in VS Code. Now, when I try to commit my changes by clicking the little 'tick' on the top right corner of the 'Source Control' tab, a file named 'COMMIT_EDITMSG' shows up on the editor, and the Source Control panel remains in the loading state and nothing happens.

I don't know why this suddenly happened but I didn't do anything.

Is there a solution for this issue?

This is the file content:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
# Your branch is up to date with 'origin/master'.
#
# Changes to be committed:
#   modified:   pages/support-topics.vue
#
like image 248
eaidy Avatar asked Aug 31 '25 10:08

eaidy


1 Answers

I just started getting this as well. Something surely changed in the default settings with a recent update.

The solution seems to be to turn off this setting

git.useEditorAsCommitInput

To change this, go to:

File > Preferences > Settings > search "git.useEditorAsCommitInput" then untick

like image 129
nickchomey Avatar answered Sep 02 '25 23:09

nickchomey