Git is using Vim for Commit messages

早过忘川 提交于 2019-12-02 05:45:06

问题


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?

In the tutorials and examples I have read, nowhere has VIM been used.

Is it because I'm using windows 7 64 bit edition?


回答1:


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.




回答2:


How can I set up an editor to work with Git on Windows?




回答3:


It is normal and it has nothing to do with the flavour of windows that you are using.



来源:https://stackoverflow.com/questions/4579852/git-is-using-vim-for-commit-messages

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!