git commit 不进入 Vim 编辑模式,提示 ihint: Waiting for your editor to close the file...

git commit 不进入 Vim 模式问题

输入 git commit 后 提示 ihint: Waiting for your editor to close the file... 然后自动退出提交。

一般是 git 默认编辑器使用了其他的 如 cat

// 用此命令查看当前默认编辑器
git config --get core.editor
cat

解决方法:

重新把默认编辑器设置为 Vim :

git config --global core.editor "vim"

参考内容:常用编程工具-Git使用教程

相关推荐
艾斯比的日常8 小时前
VSCode 实用快捷键
ide·vscode·编辑器
Galaxy_12298 小时前
vscode远程报错:Remote host key has changed,...
ide·vscode·编辑器
1379003408 小时前
Git 设置代理
git
xiaodunmeng14 小时前
sourcetree gitee 详细使用
git
LostSpeed16 小时前
git,gitea - tool - creat Gitea Empty Rep Dir
git·gitea
前端郭德纲18 小时前
vscode默认终端怎么设置成git bash
git·vscode·bash
瞌睡不来19 小时前
(学习总结25)Linux工具:vim 编辑器 和 gcc/g++ 编译器
linux·学习·编辑器·vim·编译器·gcc/g++
fedorayang1 天前
ubuntu平台下vim自动插件管理
linux·ubuntu·vim
近听水无声4771 天前
git 学习(基于Ubuntu和gitee)
git
Aphelios3801 天前
Linux 下 VIM 编辑器学习记录:从基础到进阶(上)
java·linux·编辑器·vim