DEV Community

Discussion on: Git commit aborts before I can create a commit message and I use “--wait”

Collapse
 
cvega profile image
Casey Vega

If you're using the command line to handle your commits you may want to try exporting your EDITOR.

$ export EDITOR="$(which code) --wait"

You can validate the export

$ echo $EDITOR
/usr/local/bin/code --wait

I prefer vim for editing, however, I do use vscode from time to time. I only ran the following commands above and was able to end up here. Hopefully, this works for you.

vscode-commit

Collapse
 
meg_gutshall profile image
Meg Gutshall

This didn't work either. I think I may have downloaded something that's interfering...

Collapse
 
cvega profile image
Casey Vega

You can also use the built-in functionality.

vscode-commit