Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git core.editor on Mac OS X

How can I change the core.editor of Git to start a program such as Smultron?

All I can find are examples for terminal editors or TextMate.

like image 810
Tanner Smith Avatar asked Dec 13 '09 21:12

Tanner Smith


1 Answers

You can open a file in Smultron with open

Example

git config core.editor "open -nW -a Smultron"

EDIT

Added the -nW parameters to have a new Smultron open and wait for it to close

like image 93
epatel Avatar answered Sep 18 '22 13:09

epatel