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

相关推荐
RootKai34 分钟前
Git命令与基本使用流程
git
AdaTina3 小时前
关于git的初始操作
git
AttackingLin4 小时前
VScode Claude Code 插件配置第三方api
ide·vscode·编辑器
码农爱学习4 小时前
VSCode的Markdown插件哪个好用
ide·vscode·编辑器
Coder-LiyG4 小时前
Git 常用操作指南:从初始化到回退的高频命令速查
git
Eloudy15 小时前
git format-patch 、git diff 与 git apply
git·构建
技术小结-李爽17 小时前
【工具】git安装及配置
git
FeelTouch Labs21 小时前
Node.js 中的 spawn 和 exec:子进程执行的不同方式对比
node.js·编辑器·vue·vim
技术小结-李爽1 天前
【工具】git与gitee和gitlab和github等等有什么区别?
git·gitee·gitlab
Haku Coder1 天前
0基础学习Git——基础篇
git·学习