Git 打开默认 git 编辑器而不是 VIM 或任何其他编辑器(Git Rebase)

Git open default git editor instead of VIM or any other editor (Git Rebase)

我最近安装了 Vim。现在,当我在交互模式下重新设置我的分支时,Git 会自动打开 Vim.

但是,我不想在交互模式下打开Vim;相反,我想打开默认的 Git 交互模式编辑器。如何设置 Git 使用的默认交互式编辑器?

我想你想要的是使用 nano(Ubuntu 上的默认文本编辑器),你可以通过以下方式设置它:

git config --global core.editor "nano"

git config --global core.editor "vim"