Giter VIP home page Giter VIP logo

blog's Introduction

blog's People

Contributors

zhouqunying avatar

Watchers

James Cloos avatar

blog's Issues

Git Commit Guidelines

AngularJS团队的AngularJS Git Commit Message Conventions是目前使用最广的规范,清晰的提交信息会使我们很容易追踪定位项目历史。
使用最多的格式规范如下:

type(scope?): subject
body?
footer?

引导工具

Commitizen将提示和引导我们在提交时填写所需的提交字段。
在提交时执行git cz代替git commit
Image

校验工具

Commitlint能够帮助团队遵守git commit规范,当提交信息不符合格式规范时,提交钩子运行后拒绝提交。
使用时只需安装依赖:npm install --save-dev commitizen @commitlint/cli @commitlint/config-conventional
.commitlintrc.yml中配置规则Rules
并在package.json中添加:

"scripts": {
  "commitmsg": "commitlint -E GIT_PARAMS"
}
"husky": {
  "hooks": {
    "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
  }
}

效果如下:
Image

Enjoy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.