如何使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
相關文章
相關標籤/搜索