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

相关推荐
Dontla6 小时前
Git error: fatal: detected dubious ownership in repository at xxx
git
aluluka7 小时前
Emacs 折腾日记(三十四)—— org todo
编辑器·emacs
论迹8 小时前
【Git】-- 多人协作
git·ubuntu
roamingcode9 小时前
从混沌到秩序:Git Diff 结构化报告的 Claude Code Skill 实践
人工智能·git·agent·skill·claude code·领域知识包·ai经验复用
ss27310 小时前
idea中git更新项目:将传入更改合并到当前分支,在传入更改上变基当前分支
java·git·intellij-idea
hopsky10 小时前
好用!Git 同时开发多个分支
git
secondyoung12 小时前
Git使用:rebase用法
c语言·经验分享·git·vscode
TDengine (老段)13 小时前
Node.js 语言连接器进阶指南
大数据·物联网·node.js·编辑器·vim·时序数据库·tdengine
山峰哥13 小时前
JOIN - 多表关联的魔法——3000字实战指南
java·大数据·开发语言·数据库·sql·编辑器
萧曵 丶13 小时前
CI/CD 流程
git·ci/cd