1.首先在桌面任意新建一个txt文件:

说明:git模板自己任意配置即可

Android开发之Git提交Template模板配置

 

然后将模板放入任意文件夹防止误删除:

Android开发之Git提交Template模板配置

然后使用git命令设置模板

右击桌面空白处打开git窗口:

Android开发之Git提交Template模板配置

 

输入命令: git config --global commit.template  C:/Git/mingw64/share/git-core/templates/template.txt

上面这一行是设置全局的模板,不管分支还是master都会有模板提示

Android开发之Git提交Template模板配置

 

如何查看是否设置成功呢?

Android开发之Git提交Template模板配置

打开文件后看到模板路径就表示设置成功了

Android开发之Git提交Template模板配置

 

如何检测成功是根据下面博主的博客:

感谢博主:博客直达

相关文章:

  • 2021-04-27
  • 2021-10-28
  • 2021-05-25
  • 2022-01-12
  • 2021-04-08
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
  • 2021-06-26
  • 2022-01-03
  • 2022-12-23
相关资源
相似解决方案