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

相关推荐
No8g攻城狮3 小时前
【Linux】Linux nano 编辑器全攻略:从入门到精通
linux·运维·编辑器·nano
qq_426003963 小时前
git切换当前分支到远程分支
git
ON10N7 小时前
100% 纯 Vibe Coding,我是怎么用 AI 撸出一个 VS Code 插件的
git·ai编程·visual studio code
你怎么知道我是队长10 小时前
VsCode插件推荐---Todo Tree
ide·vscode·编辑器
becatjd10 小时前
VScode的claude code插件报错command ‘claude-vscode.editor.openLast‘ not found
ide·vscode·编辑器·claude·anthropic·claude code
BIBI204911 小时前
下载指定历史版本 VSCode 或 VSCode Insider
ide·vscode·编辑器
johnny23314 小时前
编辑器和笔记软件汇总:Typst、Reminds、Memos、Editor、MDX Notes、Jotty
笔记·编辑器
Lunar*14 小时前
告别臃肿!使用 git-filter-repo 优雅清理 Git 历史记录
git
tq108614 小时前
agent 记忆 = markdown + json + git
人工智能·git
宫瑾15 小时前
vscode未定义标识符报错的解决方法
ide·vscode·编辑器