git-commit-template与规范代码提交
一、git-commit-template使用
1、简介
使用Git来管理项目时,对commit提交信息进行规范化是有必要的。
以vscode的git-commit-plugin插件为例:在选择好commit类型后,通常完成下面两步即可。
2、使用
- vscode中可以使用git-commit-plugin插件(推荐😘)
- IDEA中可以使用Git Commit Template插件
- webstorm中可以使用git-commit-template插件
二、vscode与git-commit-plugin
window中使用 Ctrl + Shift + P
拓展:项目开发与commitizen
当然,不想使用插件,还可以使用全局的npm包commitizen。
# 安装
npm install -g commitizen
# 使用
# 参考链接:https://blog.csdn.net/znhyXYG/article/details/127439833