Git Product home page Git Product logo

doc-git-commit-message-rules's Introduction

📝git代码提交message规范

先来几个完整的例子

feat:新增自开奖页面

新增活动页面,但是产品还有需求遗漏,待完善
- 新增内容1
- 新增内容2
fix:活动页面设置渠道后,自动添加渠道文字类型判断错误

完整的commit message需包含三个部分:Header,Body;Header必填,其他可以省略!

<Header>

<Body>

Header

Header包含两个部分:type,subject

<type>:<subject>

subject为对commit的简短描述

type为7种类别:

  • feat:新功能(feature)
  • fix:修复Bug
  • doc:文档
  • style:格式化代码(在不影响代码功能的前提)
  • refactor:重构代码
  • test:添加测试用例
  • chore:构建过程或者辅助工具变动

Body

body是对本次commit的详细描述。

- 和换行隔开每一项

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.