mcpField
C
commit-and-push

commit-and-push

github.com/fradserDevelopment596125 installsUpdated 5w ago
Repository

About commit-and-push

This skill guides the creation of atomic Conventional Commits with standard git commands, followed by pushing the current branch to origin. It covers inspecting changes, staging files, composing a commit message, and setting upstream for a new branch.

Key features

  1. 01Inspecting status and diffs
  2. 02Staging selected files
  3. 03Creating Conventional Commits
  4. 04Pushing the current branch to origin
  5. 05Setting upstream for new branches

Use cases

  1. 01Committing a focused set of changes
  2. 02Reviewing staged and unstaged work
  3. 03Pushing a branch to origin
  4. 04Publishing a new branch with upstream tracking

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/fradser/dotclaude --skill commit-and-push

After installing, type/commit-and-pushin Claude Code to confirm it loaded.

Details

From the project README

Commit and Push Skill (Standard Git)

Create clean, atomic Conventional Commits using standard git commands and push them to origin.

Workflow

  1. Inspect status and diff:
    git status --porcelain
    git diff --staged
    git diff
    
  2. Stage files:
    git add <file1> <file2> ...
    
  3. Commit: Formulate a Conventional Commit message and commit:
    git commit -m "<type>(<scope>): <summary>"
    
  4. Push: Detect current branch and push:
    BRANCH=$(git branch --show-current)
    git push origin "$BRANCH"
    
    If pushing a new branch for the first time, append -u:
    git push -u origin "$BRANCH"
    

Comments

Markdown supported