Git Conventions
When to use
- User asks to commit, stage, diff, or perform any git operation
- User asks to create a branch or write a commit message
- User asks to check differences with a previous version
- User mentions "git", "commit", "branch", "diff", or "version control"
- User is ready to commit after completing a task
Overview
Rules for safe and consistent git usage.
Command rules
- Never use the command
push. - Never use the option
force--force. - Never amend commit to modify files, prefer adding more commits (fix commit) and explain the error/reason.
- Before running a new git command, ask to add it in the allow list.
- Do not hesitate to use git when checking differences with the previous version.
- A task should be committed when tests pass (with assertions) and code coverage is verified.
Commit message
A git commit message must start with:
feat(agt):for featurefix(agt):when fixing the codebaserefac(agt):for refactoring, mostly to prepare or finish a featchore(agt):to cleanup the codebase, removing dead codedoc(agt):when touching to .md files or documentationtest(agt):when touching test only
Converted and distributed by TomeVault — claim your Tome and manage your conversions.