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

相关推荐
longerxin202011 小时前
nano编辑器插入、编辑完整操作教程(Linux日志/配置专用)
linux·运维·编辑器
炸膛坦客13 小时前
Git 和 GitHub:(七)将本地新建仓库与 GitHub 远程仓库关联起来(SSH)
git·ssh·github
炸膛坦客20 小时前
Git 和 GitHub:(六)在本地新建仓库并进行一次提交
git·github
寒水馨20 小时前
Windows下载、安装neovim-v0.12.4(附安装包nvim-win64.msi)
windows·编辑器·vim·lua·终端·lsp·neovim
寒水馨1 天前
macOS下载、安装neovim-v0.12.4(附安装包nvim-macos-arm64.tar.gz)
macos·vim·lua·文本编辑器·终端·lsp·neovim
sean9082 天前
Vim 学习 - 快速删除/修改
学习·vim
2301_809815252 天前
Git和Gitee基本使用教程
git·gitee
雨翼轻尘2 天前
01_Git概述及基本操作
git·概述·基本操作
程序员果子2 天前
CrewAI :当 Agent 学会团队协作
人工智能·git·python·多智能体·agent框架
‎ദ്ദിᵔ.˛.ᵔ₎2 天前
Git GDB/CGDB调试器
git·gdb