type
status
date
slug
summary
category
tags
icon
password
In Git, a standard commit message typically follows these conventions (Angular convention is one of the most popular):

1. Basic Format

2. Type (Required)

Common prefixes (lowercase):
  • feat: new feature
  • fix: bug fix
  • docs: documentation changes
  • style: code formatting changes
  • refactor: code refactoring (no new features or bug fixes)
  • perf: performance improvements
  • test: adding or modifying tests
  • chore: other changes (build process or auxiliary tool changes)

3. Scope (Optional)

Indicates the scope of the commit, for example:

4. Subject (Required)

  • Use imperative, present tense
  • Start with a lowercase letter
  • Don't end with a period

5. Real Examples

6. Complete Example

7. Recommendations

  1. Keep it concise, but include enough information
  1. Use English
  1. One commit should do one thing
  1. Review changes before committing
“Infinity” in Ethereum approveDialectical Thinking: A Guide to Proper Usage
Loading...
Zhenye Dong
Zhenye Dong
Product Manager | New Dad | New Blogger
Latest posts
How to display [[roam/js]] results inline in Roam Research?
2025-1-5
Using the IMAGE Function to Display Pictures in Excel
2025-1-4
Understand Events in EVM
2025-1-3
“I Know” and “It’s Fine”: Two Toxic Communication Habits
2024-12-11
“Infinity” in Ethereum approve
2024-11-21
How to write Git commit messages?
2024-11-21