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

相关推荐
恋喵大鲤鱼10 小时前
git checkout
git·git checkout
知识汲取者12 小时前
Git撤销操作全解析:revert、undo与drop commit的区别与应用
git
cxxx1716 小时前
【同步Overleaf, Github】
git·overleaf
H Journey17 小时前
Linux VIM介绍与常用命令
linux·运维·vim
染翰18 小时前
Linux root用户安装配置Git
linux·git·后端
老虎海子18 小时前
从零手搓一个 AI 编程助手:Mini Claude Code 完全指南
人工智能·git·vscode·python·github
Cat_Rocky18 小时前
CICD-Git简单学习 操作流程后续补
git·学习
存在的五月雨18 小时前
Git的操作
git
丶Darling.18 小时前
Git 初学者使用手册
git
小贺儿开发19 小时前
Unity UGUI 可视化热区编辑与交互系统
unity·编辑器·游戏引擎·交互·工具·适配·ugui