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

Logo

一站式 AI 云服务平台

更多推荐