how to set code as default for git commit code example Example: how to set code as default for git commit git config --global core.editor "code --wait"