branchlet
Interactive CLI tool for creating and managing Git worktrees with file copying and post-creation commands
Branchlet is a CLI tool that provides an interactive interface for managing Git worktrees. It operates through both an interactive menu system and direct commands, allowing users to create, list, and delete worktrees without manually running git worktree commands. The tool supports both interactive and non-interactive modes, making it suitable for both manual workflows and scripting.
The tool includes configuration management through project-specific .branchlet.json files or global settings. Key features include automatic copying of configuration files to new worktrees using glob patterns, custom post-creation commands that run in the new worktree directory, and configurable worktree path templates with variable substitution. Users can specify which files to copy and which to ignore, set up commands to run after worktree creation (like npm install), and configure terminal commands to automatically open editors in new worktrees.
Branchlet provides both interactive prompts and scriptable CLI flags for automation. The non-interactive mode accepts flags for worktree name (-n), source branch (-s), and new branch name (-b), with JSON output support for integration with other tools. The tool also supports branch deletion alongside worktree removal and includes safety checks for unpushed commits or uncommitted changes.
Installation
# via npm
npm install -g branchlet

Alternatives & related tools
gitnr
Cross-platform CLI tool for creating .gitignore files from GitHub and TopTal template collections
ftdv
Terminal-based diff viewer for Git with interactive file tree navigation and configurable external diff tool support.
lazyjj
Terminal UI for Jujutsu version control system, providing interactive log browsing, file management, and bookmark operations
serie
Terminal UI for git commit graphs using image protocols to render rich visualizations in supported terminals
gitu
Terminal user interface for Git inspired by Magit, providing visual staging, branching, and repository management
add a badge to your README
Maintain branchlet? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/branchlet?utm_source=badge)<a href="https://www.trmn.sh/tools/branchlet?utm_source=badge"><img src="https://www.trmn.sh/badge/branchlet.svg" alt="Featured on trmn" height="20"></a>