Haumer

Branchit — Git skill for Claude Code

Git community

Create a new branch and git worktree.

How to install Branchit

Installs to ~/.claude/skills/haumer-claude-skills-branchit/SKILL.md

Terminal
mkdir -p ~/.claude/skills/haumer-claude-skills-branchit && curl -fsSL https://raw.githubusercontent.com/Haumer/claude-skills/HEAD/commands/branchit.md -o ~/.claude/skills/haumer-claude-skills-branchit/SKILL.md

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

What Branchit does


description: Create a new branch and git worktree. Always branches from main unless told otherwise. Flags a dirty tree; ignores temp/scratch files but mentions them.

/branchit

You are creating a new branch + worktree for the user. Be terse. Do not invent steps. Always branch from `main` (or the repo's default branch) unless the user specifies a different base.

The user has authorized worktree creation by typing `/branchit`. Do not re-ask. Do stop and ask only if the dirty-tree check

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