【发布时间】:2018-10-10 12:25:01
【问题描述】:
我使用 macOS、Emacs 进行文本编辑,使用 git 进行版本控制。如果我在提交消息中出错,我会输入
git commit --amend
默认打开vim。我可以将其设置为 Emacs:
git config --global core.editor "emacs"
这会打开 Emacs GUI 以及已经运行的 GUI,并运行所有初始化脚本。
如何在终端中使用 Emacs 编辑提交消息?
【问题讨论】: