kortix-ai

Checkout Branch — Git skill for Claude Code

Git community

Switch to an existing branch by checking out its worktree, or creating one if needed.

How to install Checkout Branch

Installs to ~/.claude/commands/kortix-ai-kortix-ace-checkout-branch.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kortix-ai/kortix-ace/HEAD/.claude/commands/checkout-branch.md -o ~/.claude/commands/kortix-ai-kortix-ace-checkout-branch.md

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

What Checkout Branch does

Switch to an existing branch by checking out its worktree, or creating one if needed.

**Arguments:** $ARGUMENTS should be the branch name (full or partial match)

**Examples:**

  • /checkout-branch feature/john/add-caching → switch to branch (create worktree if needed)
  • /checkout-branch add-caching → partial match, resolve to full branch name
  • /checkout-branch fix → if multiple matches, list them and ask to be specific

**Steps:**

  1. Parse branch name from arguments
  2. Fetch latest from r

Alternatives in Git

  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • Local Review — You are tasked with setting up a local review environment for a colleague's branch 10k ★
  • 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★

Full documentation available on GitHub

View Source Repository