更改git默认编辑器:change git default editor to "gedit" or "Sublime Text 2" under Linux or Mac
gedit:
git config --global core.editor "gedit -s"
the paramater "-s " means set the gedit mode to "standalone"
Sublime Text 2
git config --global core.editor "subl -w"
the paramater "-w" means return until the file was closed.