Table of Contents
1. The format of the Commit message
1.1 Header
The Body part is for this commit Detailed description, can be divided into multiple lines.
2.1 feat example
ideaYou can install plug-ins with code submission specifications.
Home Java javaTutorial What are the usage specifications of Java Git Commit Message?

What are the usage specifications of Java Git Commit Message?

May 11, 2023 am 09:46 AM
java git

    1. The format of the Commit message

    For each submission, the Commit message includes three parts: Header, Body and Footer.

    <type>(<scope>): <subject>
    // 空一行
    <body>
    Copy after login

    Among them, Header, submission content Body for feat and fix types are required. Regardless of the section, no line must exceed 72 characters (or 100 characters). This is to prevent automatic line wrapping from affecting the appearance.

    The Header part has only one line and includes three fields: type (required), scope (required) and subject (required).
    (1)type
    type is used to describe the category of commit. Only the following 7 identifiers are allowed.

    • feat:New features

    • ##fix:Fix bug

    • docs:Documentation

    • style: Format (changes that do not affect code operation)

    • #refactor: Refactoring (that is, code changes that are not new features or bug fixes)

    • test:Add test

    • ##build:

      Changes in the build process or auxiliary tools

    • (2 ) Scope
    scope is used to describe the scope of influence of commit, such as indicator templates, rules up and down, etc., which varies depending on the project.

    (3)subject
    subject is a short description of the commit purpose, no more than 50 characters.

      1. Begin with a verb, use the first person present tense, such as change, rather than changed or changes
    • 2. The first letter Lower case
    • 3. No period (.) at the end
    • 1.2 Body

    The Body part is for this commit Detailed description, can be divided into multiple lines.

      1. You need to briefly list various forward or reverse test scenarios. If the test passes, fill in the pass.
    • 2. Add modifier information
    • 2. Example

    2.1 feat example

    feat (rule online and offline, build, take effect, simulation take effect): Add rule online and offline function

    1. The main process of rule online and offline, the engine subscribes normally, and fldl is generated normally. pass

    2. When the rule goes online or offline, if a non-existent rule number is passed in, an exception will be prompted. pass


    Submitted by: xxx

    2.2 fix example

    fix (model module): Model test failed

    1. Import mar model, including derived fields. pass

    2. Import the mar model without derived fields. pass


    Submitted by: xxx

    Plug-in recommendation

    ideaYou can install plug-ins with code submission specifications.

    1. Install the plug-in

    ## 2.Select the plug-in to submit when submittingWhat are the usage specifications of Java Git Commit Message?

    What are the usage specifications of Java Git Commit Message?

    The above is the detailed content of What are the usage specifications of Java Git Commit Message?. For more information, please follow other related articles on the PHP Chinese website!

    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

    Hot AI Tools

    Undresser.AI Undress

    Undresser.AI Undress

    AI-powered app for creating realistic nude photos

    AI Clothes Remover

    AI Clothes Remover

    Online AI tool for removing clothes from photos.

    Undress AI Tool

    Undress AI Tool

    Undress images for free

    Clothoff.io

    Clothoff.io

    AI clothes remover

    Video Face Swap

    Video Face Swap

    Swap faces in any video effortlessly with our completely free AI face swap tool!

    Hot Article

    Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
    3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
    Nordhold: Fusion System, Explained
    3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
    Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
    3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

    Hot Tools

    Notepad++7.3.1

    Notepad++7.3.1

    Easy-to-use and free code editor

    SublimeText3 Chinese version

    SublimeText3 Chinese version

    Chinese version, very easy to use

    Zend Studio 13.0.1

    Zend Studio 13.0.1

    Powerful PHP integrated development environment

    Dreamweaver CS6

    Dreamweaver CS6

    Visual web development tools

    SublimeText3 Mac version

    SublimeText3 Mac version

    God-level code editing software (SublimeText3)

    Hot Topics

    Java Tutorial
    1666
    14
    PHP Tutorial
    1273
    29
    C# Tutorial
    1253
    24
    The top ten free platform recommendations for real-time data on currency circle markets are released The top ten free platform recommendations for real-time data on currency circle markets are released Apr 22, 2025 am 08:12 AM

    Cryptocurrency data platforms suitable for beginners include CoinMarketCap and non-small trumpet. 1. CoinMarketCap provides global real-time price, market value, and trading volume rankings for novice and basic analysis needs. 2. The non-small quotation provides a Chinese-friendly interface, suitable for Chinese users to quickly screen low-risk potential projects.

    What is the analysis chart of Bitcoin finished product structure? How to draw? What is the analysis chart of Bitcoin finished product structure? How to draw? Apr 21, 2025 pm 07:42 PM

    The steps to draw a Bitcoin structure analysis chart include: 1. Determine the purpose and audience of the drawing, 2. Select the right tool, 3. Design the framework and fill in the core components, 4. Refer to the existing template. Complete steps ensure that the chart is accurate and easy to understand.

    Git: The Core of Version Control, GitHub: Social Coding Git: The Core of Version Control, GitHub: Social Coding Apr 23, 2025 am 12:04 AM

    Git and GitHub are key tools for modern software development. Git provides version control capabilities to manage code through repositories, branches, commits and merges. GitHub provides code hosting and collaboration features such as Issues and PullRequests. Using Git and GitHub can significantly improve development efficiency and team collaboration capabilities.

    Top 10 trading platforms in the currency circle, Top 10 regular trading platforms for cryptocurrency (2025 edition) Top 10 trading platforms in the currency circle, Top 10 regular trading platforms for cryptocurrency (2025 edition) Apr 21, 2025 pm 10:30 PM

    The forecasts for the top 10 formal cryptocurrency trading platforms in the 2025 cryptocurrency trading platforms are: 1. Coinbase, 2. Kraken, 3. Gemini, 4. Binance, 5. Ouyi, 6. Bitstamp, 7. LMAX Digital, 8. Itbit, 9. Coincheck, 10. Sesame Open Door, these platforms perform excellently in compliance, security, user experience, etc.

    Composer: Aiding PHP Development Through AI Composer: Aiding PHP Development Through AI Apr 29, 2025 am 12:27 AM

    AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

    What does 'platform independence' mean in the context of Java? What does 'platform independence' mean in the context of Java? Apr 23, 2025 am 12:05 AM

    Java's platform independence means that the code written can run on any platform with JVM installed without modification. 1) Java source code is compiled into bytecode, 2) Bytecode is interpreted and executed by the JVM, 3) The JVM provides memory management and garbage collection functions to ensure that the program runs on different operating systems.

    Galaxy Digital gets SEC approval for Nasdaq listing and reorganization Galaxy Digital gets SEC approval for Nasdaq listing and reorganization Apr 21, 2025 pm 02:45 PM

    Galaxy Digital Holdings has been approved by the U.S. Securities and Exchange Commission (SEC) to officially launch the restructuring plan! Galaxy Digital has been approved by the SEC, and its Nasdaq listing and corporate structure restructuring plan has officially entered the next stage. The news was announced on Monday. The SEC has approved the registration statement for Galaxy Digital. The move is a key step in the company's plan to move its corporate structure from the Cayman Islands to Delaware, and at the same time, it will set up a new parent company, NewPubCo. "We are excited that the registration statement will take effect, which marks an important milestone in the development of Galaxy Digital and will continue to follow," said the CEO of Galaxy Digital.

    H5: Key Improvements in HTML5 H5: Key Improvements in HTML5 Apr 28, 2025 am 12:26 AM

    HTML5 brings five key improvements: 1. Semantic tags improve code clarity and SEO effects; 2. Multimedia support simplifies video and audio embedding; 3. Form enhancement simplifies verification; 4. Offline and local storage improves user experience; 5. Canvas and graphics functions enhance the visualization of web pages.

    See all articles