|
|
před 4 dny | |
|---|---|---|
| .. | ||
| .claude-plugin | před 4 dny | |
| commands | před 4 dny | |
| LICENSE | před 4 dny | |
| README.md | před 4 dny | |
Streamline your git workflow with simple commands for committing, pushing, and creating pull requests.
The Commit Commands Plugin automates common git operations, reducing context switching and manual command execution. Instead of running multiple git commands, use a single slash command to handle your entire workflow.
/commitCreates a git commit with an automatically generated commit message based on staged and unstaged changes.
What it does:
Usage:
/commit
Example workflow:
# Make some changes to your code
# Then simply run:
/commit
# Claude will:
# - Review your changes
# - Stage the files
# - Create a commit with an appropriate message
# - Show you the commit status
Features:
/commit-push-prComplete workflow command that commits, pushes, and creates a pull request in one step.
What it does:
gh pr createUsage:
/commit-push-pr
Example workflow:
# Make your changes
# Then run:
/commit-push-pr
# Claude will:
# - Create a feature branch (if needed)
# - Commit your changes
# - Push to remote
# - Open a PR with summary and test plan
# - Give you the PR URL to review
Features:
gh) for PR creationRequirements:
gh) must be installed and authenticatedorigin/clean_goneCleans up local branches that have been deleted from the remote repository.
What it does:
Usage:
/clean_gone
Example workflow:
# After PRs are merged and remote branches are deleted
/clean_gone
# Claude will:
# - Find all branches marked as [gone]
# - Remove any associated worktrees
# - Delete the stale local branches
# - Report what was cleaned up
Features:
When to use:
This plugin is included in the Claude Code repository. The commands are automatically available when using Claude Code.
/commit/commit-push-pr/clean_gone# Write code
/commit
# Continue development
# Develop feature across multiple commits
/commit # First commit
# More changes
/commit # Second commit
# Ready to create PR
/commit-push-pr
# After several PRs are merged
/clean_gone
# Clean workspace ready for next feature
/commit-push-pr: GitHub CLI (gh) must be installed and authenticated/commit creates empty commitIssue: No changes to commit
Solution:
git status to verify changes exist/commit-push-pr fails to create PRIssue: gh pr create command fails
Solution:
brew install gh (macOS) or see GitHub CLI installationgh auth login/clean_gone doesn't find branchesIssue: No branches marked as [gone]
Solution:
git fetch --prune to update remote tracking/commit during development, then /commit-push-pr when ready/clean_gone weekly to maintain a clean branch listAnthropic (support@anthropic.com)
1.0.0