vim,notepad(windows自带),notepad++
当然要选notepad++
1.首先下载notepad++
2.将notepad++安装目录放到path中
3.git config --global core.editor notepad++
4.git commit 自动用notepad++打开,填写注释信息
当然了,也可以将notepad++的目录直接写到git core.editor中
git config --global core.editor "'D:Notepad++ otepad++.exe' -multiInst -notabbar -nosession -noPlugin '$*'"
推荐使用第一种,以后想在git中调用notepad++ <file>查看文件很方便