美文网首页
git fatal: unable to start edito

git fatal: unable to start edito

作者: 木猫尾巴 | 来源:发表于2016-09-27 14:21 被阅读472次

[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 edito

      本文链接:https://www.haomeiwen.com/subject/sjicyttx.html