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

相关推荐
木古古183 小时前
搞一个高效的c/c++开发环境,工具VIm+自研vim插件+Shell脚本
linux·编辑器·vim
knighthood20014 小时前
vscode插件开发的一些过程
ide·vscode·编辑器
超梦dasgg4 小时前
工作中 Git 完整使用指南(职场实战版)
git
Ws_4 小时前
Git + Gerrit 第七课:stash 临时保存工作区修改
git
enjoywindstorm4 小时前
git从入门到精通
git
小炉子的修炼手册8 小时前
【配置Agent】VScode+claude code+codex+deepseek
ide·vscode·编辑器
Adorable老犀牛9 小时前
Git 发布正式版本的一个专属的硬核功能,叫做 打标签(Tag)。
git
knighthood20019 小时前
vscode扩展中vscode版本号该如何填写?
ide·vscode·编辑器
我先去打把游戏先10 小时前
Ubuntu虚拟机(服务器版本)Git卸载完全教程——彻底移除与清理配置
服务器·git·单片机·嵌入式硬件·物联网·ubuntu·51单片机
不做无法实现的梦~11 小时前
Git Clone 使用 Watt/Steam++ 加速时报证书错误的原因与解决方法
大数据·git·elasticsearch