git fatal: unable to start editor 'xx'

[TOC]

Error info

git commit -a
error: cannot run st: No such file or directory
error: unable to start editor 'st'
Please supply the message using either -m or -F option.

Because

git global core.editor setting error

do like this

cli setting

  • zsh setting

add setting at ~/.zshrc last

# setting default git editor
git config --global core.editor "vim"

global setting

git config --global core.editor "vim"

git global file setting

vim ~/.gitconfig
# add in
[core]
    editor = vim
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容