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 小时前
18 类年终总结核心 SVG 交互方案拆解
前端·css·编辑器·交互·svg
若数11 小时前
vscode如何打开多个标签
ide·vscode·编辑器
苹果电脑的鑫鑫12 小时前
git如何撤销上次上传的内容
大数据·git·elasticsearch
Sapphire~12 小时前
Git --- Local Changes Prevent from Pull
git
许商12 小时前
【stm32】cmake构建vscode开发环境(复杂大型项目)
ide·vscode·编辑器
UX201712 小时前
Git LFS 管理 Unity 大文件
git·unity
厚国兄12 小时前
esp32+vscode,在vscode底部不显示esp32的命令图标问题解决
ide·vscode·编辑器
咬人喵喵13 小时前
告别无脑 <div>:HTML 语义化标签入门
前端·css·编辑器·html·svg
bad-Lz13 小时前
git代码库管理
大数据·git·elasticsearch
若数13 小时前
vscode常用插件
ide·vscode·编辑器