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

相关推荐
肆悟先生33 分钟前
2.1visual Studio code 插件
ide·vscode·编辑器·html5
LYOBOYI1231 小时前
使用vscode创建qt的qml项目
ide·vscode·编辑器
-拟墨画扇-1 小时前
Git | Feature分支操作
git·gitee·github·gitcode
无限进步_1 小时前
C++多态全面解析:从概念到实现
开发语言·jvm·c++·ide·git·github·visual studio
henreash2 小时前
windows下git的hooks
git
无限进步_2 小时前
C++ STL list容器深度解析与模拟实现
开发语言·数据结构·c++·windows·git·list·visual studio
爱码小白17 小时前
GIT版本控制
git
遇见火星18 小时前
Git 入门指南:从零开始掌握版本控制的魔法
git·版本控制
星际编程喵20 小时前
研发流程规范:Git Commit 书写标准
git·gitee·github·gitcode
技术小甜甜21 小时前
【Godot】【入门】GDScript 快速上手(只讲游戏里最常用的 20% 语法)
android·游戏·编辑器·游戏引擎·godot