Visual Studio Code has quickly become a very popular lightweight text editor.
I've had a lot of people ask me how to set it up as their default editor for Git.
So, without further ado:
git config --global core.editor "code --new-window --wait"
I hope you find this post useful!