-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
Implement core commit commands with conventional commit support.
Commands
commit msg
Generate commit message from staged changes.
commit msg # Analyze diff, suggest message
commit msg "feat: add auth" # Validate/format message
commit msg --type feat # Specify type
commit msg --scope api # Specify scope
commit msg --breaking # Mark as breaking changecommit create (or just commit)
Stage and commit in one flow.
commit # Interactive: select files, write message
commit -a # Stage all, prompt for message
commit -a -m "feat: X" # Stage all with message
commit --fixup HEAD~2 # Fixup commitcommit amend
Safely amend commits.
commit amend # Amend with editor
commit amend --no-edit # Keep message, add staged
commit amend --author # Fix authorcommit undo
Undo commits safely.
commit undo # Soft reset HEAD~1
commit undo --hard # Hard reset (with warning)
commit undo 3 # Undo last 3 commitsConventional Commits Format
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
Metadata
Metadata
Assignees
Labels
No labels