by raghavpillai
Branchlet: A simple CLI Git worktree manager
# Add to your Claude Code skills
git clone https://github.com/raghavpillai/branchletA interactive CLI tool for creating and managing Git worktrees with an easy to use interface.

npm install -g branchlet
Run Branchlet in any Git repository:
branchlet
This opens an interactive menu where you can:
branchlet
Opens the main menu with all available options.
branchlet create # Go directly to worktree creation
branchlet list # List all worktrees
branchlet delete # Go directly to worktree deletion
branchlet settings # Open settings menu
branchlet --help # Show help information
branchlet --version # Show version number
branchlet -m create # Set initial mode
No comments yet. Be the first to share your thoughts!
Branchlet looks for configuration files in this order:
.branchlet.json in your repo's root (project-specific)~/.branchlet/settings.json (global configuration)Create a .branchlet.json file in your project root or configure global settings:
{
"$schema": "https://raw.githubusercontent.com/raghavpillai/branchlet/main/schema.json",
"worktreeCopyPatterns": [".env*", ".vscode/**"],
"worktreeCopyIgnores": ["**/node_modules/**", "**/dist/**", "**/.git/**"],
"worktreePathTemplate": "$BASE_PATH.worktree",
"postCreateCmd": ["npm install", "npm run db:generate"],
"terminalCommand": "code .",
"deleteBranchWithWorktree": true
}
worktreeCopyPatterns: Files/directories to copy to new worktrees (supports glob patterns)
[".env*", ".vscode/**"]["*.json", "config/**", ".env.local"]worktreeCopyIgnores: Files/directories to exclude when copying (supports glob patterns)
["**/node_modules/**", "**/dist/**", "**/.git/**", "**/Thumbs.db", "**/.DS_Store"]worktreePathTemplate: Template for worktree directory names
"$BASE_PATH.worktree"$BASE_PATH, $WORKTREE_PATH, $BRANCH_NAME, $SOURCE_BRANCH"worktrees/$BRANCH_NAME", "$BASE_PATH-branches/$BRANCH_NAME"postCreateCmd: Commands to run after creating a worktree. Runs in the new worktree directory.
[]["npm install"], `["pnpm install", "pnpm build"...