How to enter a Git commit message in this editor?

前端 未结 2 652
旧巷少年郎
旧巷少年郎 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"
    

提交回复
热议问题