Skip to content

Useful workflow commands - commit wip, commit squash, commit split #6

@jordanpartridge

Description

@jordanpartridge

Overview

High-value workflow commands for common commit patterns.

Commands

commit wip

Quick work-in-progress commit.

commit wip                      # "wip: work in progress"
commit wip "auth flow"         # "wip: auth flow"
commit wip --staged            # Only staged files

commit squash

Interactive squash helper.

commit squash 3                 # Squash last 3 commits
commit squash --into HEAD~5    # Squash into specific commit
commit squash --wip            # Squash all wip commits

commit split

Split a commit into multiple.

commit split HEAD              # Interactive split of last commit
commit split HEAD~2            # Split specific commit

commit fixup

Quick fixup for previous commits.

commit fixup                    # Fixup for HEAD
commit fixup HEAD~3            # Fixup for specific commit
commit fixup --autosquash      # Rebase with autosquash

commit stats

Commit statistics.

commit stats                    # Today's commits
commit stats --week            # This week
commit stats --author me       # My commits only

Output:

┌─────────────────────────────────────────────────┐
│ Commit Stats (Today)                            │
├─────────────────────────────────────────────────┤
│ Total: 5 commits                                │
│ feat: 2  fix: 2  docs: 1                       │
│ +342 / -89 lines                               │
│ 12 files changed                               │
└─────────────────────────────────────────────────┘

commit template

Manage commit templates.

commit template                 # Use default template
commit template --list         # Show available templates
commit template --set feat     # Set default template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions