美文网首页
执行git commit命令不小心进入了VI/VIM,怎么退出?

执行git commit命令不小心进入了VI/VIM,怎么退出?

作者: 简疏志 | 来源:发表于2017-02-28 20:57 被阅读89次

    参考链接http://stackoverflow.com/questions/19085807/please-enter-a-commit-message-to-explain-why-this-merge-is-necessary-especially

    在vi模式下输入

    To solve this:

    press "i"
    write your merge message
    press "esc"
    write ":wq"
    then press enter

    "i" is for "insert", "esc" is the exit the insertion, and ":wq" is just "write" and "quit".

    相关文章

      网友评论

          本文标题:执行git commit命令不小心进入了VI/VIM,怎么退出?

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