Commit

Commit on a new branch with conventional message

emaraschio b0f37c2 4 files · 3.9 KB Updated

File contents

Overview

Commit changes to the repository in a new branch with proper commit message.

Steps

  1. Prepare branch

    • Create a new branch
    • Verify branch is up to date with main or master
  2. Write commit message

    • Must use the conventional commit message convention.
    • Summarize changes clearly
  3. Commit changes

    • Use a single commit for the changes
    • Commit the changes to the branch
    • Push the branch to the remote repository

Commit Message Examples

feat(scope): add new feature
fix(script): resolve script error
chore(script): update script dependencies
refactor(script): standardize script error handling
test(script): add comprehensive script tests
docs(script): update script documentation

Guardrails

  • Use the Conventional Commits convention for every message.
  • Commit only when the user asks; do not push or amend without an explicit request.
  • Never skip hooks; if a hook fails, fix the issue and make a new commit.
  • Never print, stage, or commit secrets or credential files (.env, .env.*, keys); exclude them and warn instead.

emaraschio/cursor-commands/tree/main/.cursor/skill-contracts/commit commit b0f37c2478

Frequently asked questions

npx skillmds@latest add emaraschio/commit