Skip to content

Instantly share code, notes, and snippets.

@Kartones
Created May 23, 2025 14:06
Show Gist options
  • Select an option

  • Save Kartones/d6272dd01c5369f682c9f9cb9d0519b7 to your computer and use it in GitHub Desktop.

Select an option

Save Kartones/d6272dd01c5369f682c9f9cb9d0519b7 to your computer and use it in GitHub Desktop.
cursor-conventional-commits.mdc
---
description:
globs:
alwaysApply: true
---
Write your git commits following the "conventional commits" semantics and guidelines.
Prefixes for commits:
- `build:`
- `chore:`
- `ci:`
- `docs:`
- `feat:`
- `fix:`
- `perf:`
- `refactor:`
- `revert:`
- `style:`
- `test:`
Optional decorations for the prefixes:
- `(<scope>)` e.g., `fix(test)` or `fix(api)`
- `BREAKING CHANGE: <description>`: In a new line, after the main message
When attempting to add multiple lines in the commit message, use always the single-line message format.
Example:
```
git commit -m "feat: support zero amounts and file comments" -m "- Allow zero amounts in both expense and income entries" -m "- Change entry sorting to ascending order for better readability" -m "- Add support for comments in .dat files (lines starting with ;)" -m "- Update documentation to version 1.3 with new features"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment