Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Git workflow automation and utilities
- **`/git:cherry-pick-by-patch` `<commit_hash>`** - Cherry-pick git commit into current branch by "patch" command
- **`/git:commit-suggest` `[N]`** - Generate Conventional Commits style commit messages or summarize existing commits
- **`/git:debt-scan`** - Analyze technical debt indicators in the repository
- **`/git:setup` `[--upstream-only | --downstream-only]`** - Set up a git repository with upstream and downstream remotes for forked development workflows
- **`/git:suggest-reviewers` `[base-branch]`** - Suggest appropriate reviewers for a PR based on git blame and OWNERS files
- **`/git:summary`** - Show current branch, git status, and recent commits for quick context

Expand Down
6 changes: 6 additions & 0 deletions docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
"synopsis": "/git:debt-scan",
"argument_hint": ""
},
{
"name": "setup",
"description": "Set up a git repository with upstream and downstream remotes for forked development workflows",
"synopsis": "/git:setup [--upstream-only | --downstream-only]",
"argument_hint": "[--upstream-only | --downstream-only]"
},
{
"name": "suggest-reviewers",
"description": "Suggest appropriate reviewers for a PR based on git blame and OWNERS files",
Expand Down
14 changes: 14 additions & 0 deletions plugins/git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Git workflow automation and utilities for Claude Code.

## Commands

### `/git:setup`

Set up a git repository with upstream and downstream remotes for forked development workflows. This command helps configure repositories following the OpenShift/Red Hat development model where you work with:
- **Upstream**: Original repository (e.g., kubernetes)
- **Downstream**: OpenShift/Red Hat fork (e.g., openshift/kubernetes)
- **Origin**: Your personal fork

Key features:
- Create personal forks from upstream repositories
- Clone repositories with proper directory structure
- Configure git remotes (origin, upstream, downstream)
- Create and sync branches across remotes
- Manage existing repositories

### `/git:cherry-pick-by-patch`

Cherry-pick a git commit into the current branch using the patch command instead of git cherry-pick.
Expand Down
Loading