更改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.

posted @ 2012-02-27 15:35  maadiah  阅读(6461)  评论(0编辑  收藏  举报