Skip to content

Instantly share code, notes, and snippets.

View dipendra-sharma's full-sized avatar

Dipendra Sharma dipendra-sharma

View GitHub Profile
@dipendra-sharma
dipendra-sharma / worktree.md
Created July 9, 2025 09:10
A Claude command that creates git worktrees in adjacent directories and automatically launches a new terminal session with Claude running. Perfect for quickly setting up isolated workspaces for different branches while maintaining your current work context.
allowed-tools description
Bash(git:*), Bash(mkdir:*), Bash(open:*), Bash(gnome-terminal:*), Bash(xterm:*), Bash(konsole:*)
Create git worktree in adjacent directory and open terminal with claude

Git Worktree Creator

Creates a git worktree in an adjacent directory structure and opens a new terminal with claude running.

Current Repository Info