如何使Git使用我选择的编辑器进行提交? - How do I make Git use the editor of my choice for commits?

问题:

I would prefer to write my commit messages in Vim, but it is opening them in Emacs. 我更愿意在Vim中编写个人提交消息,可是它正在Emacs中打开它们。 编辑器

How do I configure Git to always use Vim? 如何配置Git始终使用Vim? Note that I want to do this globally, not just for a single project. 请注意,我要全局执行此操做,而不单单是针对单个项目。 this


解决方案:

参考一: https://stackoom.com/question/AtXx/如何使Git使用我选择的编辑器进行提交
参考二: https://oldbug.net/q/AtXx/How-do-I-make-Git-use-the-editor-of-my-choice-for-commits
相关文章
相关标签/搜索