git 问题 --- Waiting for your editor to close the file...
问题:
$ git commit hint: Waiting for your editor to close the file... D:\Program Files\Git\usr\bin\vi: line 3: exec: vim: not found $ git commit hint: Waiting for your editor to close the file... D:\Program Files\Git\usr\bin\vi: line 3: exec: vim: not found error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option. Please supply the message using either -m or -F option.
需要设置编辑器,比如 notepad++
git config --global core.editor "'D:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
参考:https://git-scm.com/book/zh/v2/%E9%99%84%E5%BD%95-C:-Git-%E5%91%BD%E4%BB%A4-%E8%AE%BE%E7%BD%AE%E4%B8%8E%E9%85%8D%E7%BD%AE