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

相关推荐
m0_579146659 小时前
已被 Git 追踪的本地修改文件如何实现临时忽略
git
糖少主11 小时前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
小王C语言12 小时前
vscode智能提示问题、跳转问题
ide·vscode·编辑器
console.log('npc')14 小时前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
郝亚军18 小时前
如何在vscode上运行python程序
ide·vscode·编辑器
Arvin.Angela18 小时前
VsCode 安装文档
ide·vscode·编辑器
恋喵大鲤鱼18 小时前
git reflog
git·git reflog
MatrixOrigin20 小时前
MatrixOne Git4Data 技术详解(二):从零跑通所有 Git 原语
git
anew___20 小时前
常用的 Git 工作流
git
shimly12345620 小时前
git diff 生成一部分文件的补丁
git