jnarowski

Commit And Push — Git skill for Claude Code

Git community

Create commit, push changes, and create PR if needed.

How to install Commit And Push

Installs to ~/.claude/commands/jnarowski-agentcmd-commit-and-push.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jnarowski/agentcmd/HEAD/.claude/commands/commit-and-push.md -o ~/.claude/commands/jnarowski-agentcmd-commit-and-push.md

Restart Claude Code, or start a new session, for it to be picked up.

What Commit And Push does


allowed-tools: Bash(gh pr:*), Bash(git:*) description: Create commit, push changes, and create PR if needed argument-hint: [base-branch]

Commit and Push

Analyze changes, create a commit with auto-generated message following team conventions, push to remote, and create a pull request if one doesn't exist. Fails gracefully if there are no changes to commit.

Variables

  • $base-branch: $1 (optional) - The base branch for the PR (defaults to main)

Instructions

  • NEVER run addit

Alternatives in Git

  • Worktree Deliver — Commit all work, push, and create a pull request from the current worktree 23.4k ★
  • Yeet — Stage, commit, push code, and open a GitHub pull request via CLI 14.6k ★
  • Commit Commands — Git commit workflows: commit, push, and PR creation 14k ★

Full documentation available on GitHub

View Source Repository