自定义git提交模板

模板文件名为:     commit_template

文件内容:

       Auditor:

       Fix:

设置模板命令:

    git config --global commit.template commit_template

设置操作模板的编辑器:

   git config --global core.editor vim

然后输入   git commit就进入了vim编辑器的commit_template的文件了

猜你喜欢

转载自zx10103326.iteye.com/blog/2282969