Git Emacsclient вопросы

718
bneil

Я установил мою переменную редактора следующим образом:

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

и получить этот вывод всякий раз, когда я хочу редактировать сообщение во время коммита

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. 
0

2 ответа на вопрос

2
Mustafa Simav

Вы проверили вывод which emacsclientкоманды? Бьюсь об заклад, это

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

В любом случае, ваш глобальный git config находится в ~/.gitconfigфайле, так что вы можете проверить и отредактировать его.

0
bneil

У меня работал полный путь "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -t -s", а не псевдоним редактора.

Похожие вопросы