Push And Pr banner
DefaultPerson DefaultPerson

Push And Pr

Git community

Description

--- allowed-tools: Bash(git *), Bash(gh *) description: Push current branch and create a pull request. --- ## Context - Status: !`git status` - Branch: !`git branch --show-current` - Remote: !`git remote -v` - Unpushed commits: !`git log @{u}..HEAD --oneline 2>/dev/null || echo "No upstream set"` ## Git Rules - Trunk-based development with rebase (linear history) - PR title = Conventional Commit format, ≤72 chars - PR description: what / why / how to test / risks - PR base always `main`, mer

Installation

Installs to ~/.claude/commands/defaultperson-claude-code-setup-push-and-pr.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/DefaultPerson/claude-code-setup/HEAD/.claude/commands/push-and-pr.md -o ~/.claude/commands/defaultperson-claude-code-setup-push-and-pr.md

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

Full documentation available on GitHub

View Source Repository