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使用教程

相关推荐
9***P3344 小时前
Git测试框架使用指南
git
X***48965 小时前
Git数据分析应用
git
6***37945 小时前
Git安全
git·安全
倦王6 小时前
vscode 中如何去选择不同的远程环境去debug
ide·vscode·编辑器
z***I3946 小时前
Git机器学习
人工智能·git·机器学习
c++逐梦人8 小时前
Linux下的编辑器vim的介绍
linux·编辑器·vim
代码AC不AC9 小时前
【Linux】版本控制器Git
linux·git·gitee
Z***25809 小时前
Git云原生
git·云原生
h***839310 小时前
Git撤销commit操作的3种方法对比
git
万山y10 小时前
git remote add做了什么
大数据·git·elasticsearch