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

相关推荐
OYangxf1 分钟前
Git Rollback, Reset and Restore的使用
git
AIMath~34 分钟前
git管理代码仓库的工具
git
容智信息1 小时前
AI Agent(智能体)的输出格式应该从 Markdown 转向 HTML吗?
前端·人工智能·rust·编辑器·html·prompt
ONLYOFFICE3 小时前
如何通过创建插件,自动化Office文档中的重复操作
自动化·编辑器·onlyoffice·插件
techdashen5 小时前
为 Agent 重新设计的 Git:Cloudflare Artifacts 是什么,怎么工作的
git
赖在沙发上的熊6 小时前
Git多仓库协作中和并冲突问题:“不相关历史合并”+“问跟踪文件冲突”
git
风若飞6 小时前
▎ 适用于完全没有 Git 经验的新手
git
Waay8 小时前
Linux Shell 知识点考评(三):awk文本分析(附答案)
linux·服务器·编辑器
时空自由民.8 小时前
git rebase简介
git
山西瀚辰信安科技有限公司9 小时前
git下载安装及使用
git·学习