{"id":51118919,"url":"https://github.com/sulthonzh/worktree-manager","last_synced_at":"2026-06-25T00:30:33.075Z","repository":{"id":360042556,"uuid":"1248482177","full_name":"sulthonzh/worktree-manager","owner":"sulthonzh","description":"Zero-config CLI for git worktree management with intelligent automation","archived":false,"fork":false,"pushed_at":"2026-06-23T01:22:55.000Z","size":49,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T03:13:23.360Z","etag":null,"topics":["branch-management","cli","developer-tools","git","git-branch","git-worktree","git-worktrees","workflow","worktree"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulthonzh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-24T17:43:22.000Z","updated_at":"2026-06-23T01:23:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sulthonzh/worktree-manager","commit_stats":null,"previous_names":["sulthonzh/worktree-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sulthonzh/worktree-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fworktree-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fworktree-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fworktree-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fworktree-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulthonzh","download_url":"https://codeload.github.com/sulthonzh/worktree-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulthonzh%2Fworktree-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34755061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["branch-management","cli","developer-tools","git","git-branch","git-worktree","git-worktrees","workflow","worktree"],"created_at":"2026-06-25T00:30:32.814Z","updated_at":"2026-06-25T00:30:33.070Z","avatar_url":"https://github.com/sulthonzh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# worktree-manager\n\nZero-config CLI for git worktree management with intelligent automation.\n\n## Features\n\n- **Zero-config**: Works out of the box, no setup required\n- **Intelligent automation**: Automatically copies dependencies and environment files\n- **Interactive commands**: User-friendly prompts for common operations\n- **Smart path generation**: Automatically generates worktree paths based on branch names\n- **Worktree cleanup**: Detects and removes stale worktrees\n- **Branch management**: Create, list, remove worktrees with branch awareness\n\n## Installation\n\n```bash\nnpm install -g worktree-manager\n```\n\n## Usage\n\n### Add a new worktree\n\n```bash\nwtm add \u003cbranch\u003e\n```\n\nOptions:\n- `-d, --detach`: Create a detached worktree\n- `-f, --force`: Force creation even if worktree exists\n- `-s, --skip-setup`: Skip automatic dependency copying\n\n### List all worktrees\n\n```bash\nwtm list\n```\n\nOptions:\n- `-v, --verbose`: Show detailed information\n\n### Remove a worktree\n\n```bash\nwtm remove \u003cpath\u003e\n```\n\nOptions:\n- `-b, --with-branch`: Also delete the associated branch\n- `-f, --force`: Force removal\n\n### Change directory to a worktree\n\n```bash\nwtm cd \u003cbranch\u003e\n```\n\n### Clean stale worktrees\n\n```bash\nwtm clean\n```\n\n### Configure worktree-manager\n\n```bash\nwtm config\n```\n\n## Examples\n\n```bash\n# Add a worktree for a feature branch\nwtm add feature/new-ui\n\n# Add with detached HEAD\nwtm add --detach hotfix/bug-123\n\n# List all worktrees with details\nwtm list --verbose\n\n# Remove a worktree and its branch\nwtm remove --with-branch feature/old-feature\n\n# Clean up stale worktrees\nwtm clean\n\n# Change to a worktree directory\nwtm cd develop\n```\n\n## How It Works\n\nworktree-manager wraps `git worktree` commands with additional automation:\n\n1. **Automatic dependency detection**: Detects Node.js, Python, and other project types\n2. **Smart file copying**: Copies package.json, requirements.txt, .env files, etc.\n3. **Environment setup**: Runs project-specific setup commands\n4. **Path generation**: Creates organized worktree directories (e.g., `../worktrees/branch-name`)\n\n## Requirements\n\n- Node.js \u003e= 18.0.0\n- Git 2.5+ (with worktree support)\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulthonzh%2Fworktree-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulthonzh%2Fworktree-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulthonzh%2Fworktree-manager/lists"}