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

相关推荐
cos2 小时前
Fork 主题如何更新?基于 Ink 构建主题更新 CLI 工具
前端·javascript·git
OpenMiniServer3 小时前
当 AI 成为 Git 里的一个“人”
人工智能·git
claider4 小时前
Vim User Manual 阅读笔记 User_04.txt Making small changes 作微小改动
vim
Carry3454 小时前
不清楚的 .gitignore
前端·git
夜流冰8 小时前
VSCode - 显示EOL字符的插件
ide·vscode·编辑器
云堆客栈12 小时前
基于vscode的markdown编辑器部署方案
ide·vscode·编辑器
番茄灭世神12 小时前
Git入门使用学习
git·gitee·软件工程·计算机专业入门
滑稽的13 小时前
sublime merge汉化
编辑器·sublime text
dust_and_stars13 小时前
ubuntu24 安装vscode
ide·vscode·编辑器
Destiny_where13 小时前
Claude VSCode插件版接入强大的GLM(无需登录注册claude code)
ide·人工智能·vscode·编辑器·claude code