Configuring VS Code as git's default editor

To configure VS Code as git’s default editor, in a terminal run:

git config --global core.editor "code --wait"

Now git will use VS Code to edit commit messages. You can also configure VS Code as git’s default diff tool.

More info