cursor-worktree
v2.1.1
Published
A CLI tool for managing Git worktrees with a focus on opening them in the Cursor editor.
Downloads
25
Readme
cursor-worktree
A CLI tool for managing Git worktrees with a focus on opening them in the Cursor editor.
Installation
pnpm install -g .Usage
Create a new worktree
cwt new <branchName> [options]Options:
-p, --path <path>: Specify a custom path for the worktree-c, --checkout: Create new branch if it doesn't exist and checkout automatically
Example:
cwt new feature/login
cwt new feature/chat --checkout
cwt new feature/auth -p ./auth-worktreeList worktrees
cwt listRemove a worktree
cwt remove <pathOrBranch>You can remove a worktree by either its path or branch name:
cwt remove ./feature/login-worktree
cwt remove feature/chatRequirements
- Git
- Node.js
- Cursor editor installed and available in PATH
Development
# Install dependencies
pnpm install
# Build
pnpm build
# Run in development mode
pnpm devLicense
MIT
