A CLI tool for managing Git worktrees with a focus on opening them in the Cursor editor.
npm install cursor-worktreeA CLI tool for managing Git worktrees with a focus on opening them in the Cursor editor.
``bash`
pnpm install -g .
`bash`
cwt new
Options:
- -p, --path : Specify a custom path for the worktree-c, --checkout
- : Create new branch if it doesn't exist and checkout automatically
Example:
`bash`
cwt new feature/login
cwt new feature/chat --checkout
cwt new feature/auth -p ./auth-worktree
`bash`
cwt list
`bash`
cwt remove
You can remove a worktree by either its path or branch name:
`bash`
cwt remove ./feature/login-worktree
cwt remove feature/chat
- Git
- Node.js
- Cursor editor installed and available in PATH
`bashInstall dependencies
pnpm install
MIT