openshift

Backport — Git skill for Claude Code

Git community

Backport a feature or fix to a release branch with dependency adaptation.

How to install Backport

Installs to ~/.claude/commands/openshift-monitoring-plugin-backport.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/openshift/monitoring-plugin/HEAD/.claude/commands/backport.md -o ~/.claude/commands/openshift-monitoring-plugin-backport.md

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

What Backport does


allowed-tools: Bash(git:*), Read, Write, Edit argument-hint: [commit-hash] description: Backport a feature or fix to a release branch with dependency adaptation

Backport Feature to Release Branch

Context

  • Current branch: !git branch --show-current
  • Target branch: $1
  • Commit to backport: $2 (or HEAD if not specified)
  • Latest commit info: !git log -1 --format="%H %s"
  • Changed files: !git show --name-only HEAD | tail -n +7

Dependency Version Difference

Alternatives in Git

Full documentation available on GitHub

View Source Repository