Git使用Vim提交消息 [英] Git is using Vim for Commit messages
本文介绍了Git使用Vim提交消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚开始使用git,当我执行git commit时,它使用VIM文本编辑器更改写入提交消息。这正常吗?
I have just started using git and when I git commit it uses the VIM text editor to change write the commit message. Is this normal?
在我阅读的教程和示例中,没有使用VIM。
In the tutorials and examples I have read, nowhere has VIM been used.
是因为我m使用Windows 7 64位 版本?
Is it because I'm using windows 7 64 bit edition?
推荐答案
如果无法通过 $设置编辑器GIT_EDITOR
环境变量, core.editor
配置变量, $ VISUAL
或 $ EDITOR
环境变量,它将使用 vi
。
If you did not set an editor via the $GIT_EDITOR
environment variable, core.editor
configuration variable, the $VISUAL
or $EDITOR
environment variables, it will use vi
.
这篇关于Git使用Vim提交消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文