Fork me on GitHub

git-commit-template与规范代码提交

一、git-commit-template使用

1、简介

  使用Git来管理项目时,对commit提交信息进行规范化是有必要的。

  以vscode的git-commit-plugin插件为例:在选择好commit类型后,通常完成下面两步即可。
image

2、使用

  • vscode中可以使用git-commit-plugin插件(推荐😘)
  • IDEA中可以使用Git Commit Template插件
  • webstorm中可以使用git-commit-template插件

二、vscode与git-commit-plugin

image

window中使用 Ctrl + Shift + P

image

拓展:项目开发与commitizen

  当然,不想使用插件,还可以使用全局的npm包commitizen

# 安装
npm install -g commitizen

# 使用
# 参考链接:https://blog.csdn.net/znhyXYG/article/details/127439833
posted @ 2023-02-10 11:51  Lencamo  阅读(473)  评论(0编辑  收藏  举报