mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-13 19:20:06 +00:00
44fed9a647
Provides a /commit-push slash command that reviews git status and diff, stages all changes, writes a conventional commit message, commits, and pushes to the current branch.
1.3 KiB
1.3 KiB
description
| description |
|---|
| Stage, commit, and push changes with an auto-generated conventional commit message |
Review the current git status and diff, then stage all changes, write a concise conventional commit message, commit, and push to the current branch.
Steps
- Check status:
git status— understand what has changed - Review the diff:
git diff(andgit diff --cachedif anything is already staged) — read the actual changes - Stage everything:
git add -A - Craft the commit message following Conventional Commits:
- Format:
<type>(<scope>): <short summary> - Types:
feat,fix,refactor,chore,docs,test,perf,build - Scope: optional, the subsystem affected (e.g.
ui,cmd,config) - Summary: imperative mood, lowercase, no trailing period, ≤72 chars
- Body: add a blank line then bullet points for non-trivial changes
- Do not include "Generated by" or similar noise
- Format:
- Commit:
git commit -m "<message>" - Push:
git push
Guidelines
- Read the actual diff — do not guess from filenames alone
- Prefer one well-scoped commit; do not split unless the changes are clearly unrelated
- Keep the subject line under 72 characters
- Use the body to explain what and why, not how
- If there is nothing to commit, say so and stop
$@