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

你可能感兴趣的:(git fatal: unable to start editor 'xx')