lindsey-anthropic

Demo Branch — Git skill for Claude Code

Git community

Create a new demo branch with auto-incrementing number.

How to install Demo Branch

Installs to ~/.claude/commands/lindsey-anthropic-meridian-workshop-demo-branch.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/lindsey-anthropic/meridian-workshop/HEAD/.claude/commands/demo-branch.md -o ~/.claude/commands/lindsey-anthropic-meridian-workshop-demo-branch.md

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

What Demo Branch does


description: Create a new demo branch with auto-incrementing number

Create a new git branch named "demo-branch" (or "demo-branch-2", "demo-branch-3", etc. if it already exists).

Steps:

  1. Check if "demo-branch" exists: git branch --list demo-branch
  2. If it exists, check "demo-branch-2", "demo-branch-3", etc. until you find an available name
  3. Create and checkout the new branch: git checkout -b
  4. Confirm the branch was created and show current status

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★

Full documentation available on GitHub

View Source Repository