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
- 01Inspecting status and diffs
- 02Staging selected files
- 03Creating Conventional Commits
- 04Pushing the current branch to origin
- 05Setting upstream for new branches
Use cases
- 01Committing a focused set of changes
- 02Reviewing staged and unstaged work
- 03Pushing a branch to origin
- 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-pushAfter installing, type/commit-and-pushin Claude Code to confirm it loaded.
Details
From the project READMECommit and Push Skill (Standard Git)
Create clean, atomic Conventional Commits using standard git commands and push them to origin.
Workflow
- Inspect status and diff:
git status --porcelain git diff --staged git diff - Stage files:
git add <file1> <file2> ... - Commit:
Formulate a Conventional Commit message and commit:
git commit -m "<type>(<scope>): <summary>" - Push:
Detect current branch and push:
If pushing a new branch for the first time, appendBRANCH=$(git branch --show-current) git push origin "$BRANCH"-u:git push -u origin "$BRANCH"
Comments
Markdown supported