Using TextEdit as default git editor on a Mac 

As a default editor for git you want something that opens up fast and is fairly simple to use. On my Mac I believe this is the default editor – TextEdit – which comes with the system. To make it the default editor for git, issue the following command in the shell:

git config --global core.editor “open -e -W -n”