Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I set my editor variable like so:

git config --global core.editor "`which emacsclient` -t -s"

and get this output whenever I want to edit the message during a commit

emacsclient: aliased to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s :      
emacsclient:: command not found
error: There was a problem with the editor 'emacsclient: aliased to
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s '.
Please supply the message using either -m or -F option.
share|improve this question

2 Answers 2

Did you checked the output ofwhich emacsclient command? I bet it is

emacsclient: aliased to /Applications/Emacs.app/Contents/MacOS/bin/emacsclient

Anyway, your global git config is located ~/.gitconfig file, so you can check and edit it.

share|improve this answer

Setting the full path "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s" and not the alias to be the editor worked for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.