vim编辑器: Esc ->Shift+: →wq! →Enter Nano编辑器: Ctrl+x→Y->Enter 修改git默认的编辑器nano为vim的方法: git config --global core.editor vim