How to enter a Git commit message in this editor?

前端 未结 2 653
旧巷少年郎
旧巷少年郎 2021-01-24 03:23

I am trying to enter the Git commit message in the editor which looks like Vi, but none of commands like :wq, Esc etc. are working. Whenever I try to mer

相关标签:
2条回答
  • 2021-01-24 03:38

    It looks like to be Joe

    From what I know to save and exit you must type ^kx (where ^ is equal to CTRL).

    If you want to change default Git's editor, just update the EDITOR variable, in your ~/.bashrc by example:

    export EDITOR="vim"
    
    0 讨论(0)
  • 2021-01-24 03:45

    The (fundamental) line is a hint that this is some kind of Emacs: Fundamental mode is one of the Major Modes of Emacs.

    This is the documentation for the basic usage of Emacs:

    • Exiting Emacs
    • Basic editing commands
    0 讨论(0)
提交回复
热议问题