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”
openThe command opens a file on a Mac(or a directory or URL), just as if you had double-clicked the file’s icon.
-eCauses the file to be opened with /Applications/TextEdit
-WCauses open to wait until the applications it opens (or that were already open) have exited.
-nOpen a new instance of the application(s) even if one is already running.