{"id":50535362,"url":"https://github.com/fredericoo/worktree-cli","last_synced_at":"2026-06-03T16:01:33.786Z","repository":{"id":357418124,"uuid":"1197420854","full_name":"fredericoo/worktree-cli","owner":"fredericoo","description":"Fast git worktree management CLI — convert repos to bare, checkout worktrees, manage branches","archived":false,"fork":false,"pushed_at":"2026-05-12T17:00:16.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T18:38:38.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fredericoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-03-31T15:09:37.000Z","updated_at":"2026-05-12T17:08:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fredericoo/worktree-cli","commit_stats":null,"previous_names":["fredericoo/worktree-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fredericoo/worktree-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fworktree-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fworktree-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fworktree-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fworktree-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fredericoo","download_url":"https://codeload.github.com/fredericoo/worktree-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fredericoo%2Fworktree-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33872298,"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-03T02:00:06.370Z","response_time":59,"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":[],"created_at":"2026-06-03T16:01:32.670Z","updated_at":"2026-06-03T16:01:33.769Z","avatar_url":"https://github.com/fredericoo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# worktree-cli (`wt`)\n\nFast git worktree management. Convert repos to bare+worktree layouts and switch between branches instantly.\n\n## Why\n\nGit worktrees let you work on multiple branches simultaneously without stashing or switching. But the setup is manual and error-prone. `wt` automates the entire workflow:\n\n```bash\n# One-time: convert your repo\ncd my-repo \u0026\u0026 wt create\n\n# Daily: jump between branches\nwt co feature-branch    # creates worktree if needed, cd's into it\nwt co -b new-feature    # new branch + worktree\nwt rm old-branch        # clean up\n```\n\nEach branch gets its own directory sharing a single `.bare/` git database.\n\n## Install\n\nRequires [Bun](https://bun.sh):\n\n```bash\nbun install -g worktree-cli\n```\n\n### Shell integration (recommended)\n\nAdd to your shell startup file for auto-cd on checkout:\n\n```bash\n# zsh (~/.zshrc)\neval \"$(wt init zsh)\"\n\n# bash (~/.bashrc)\neval \"$(wt init bash)\"\n\n# fish (~/.config/fish/config.fish)\nwt init fish | source\n```\n\nWithout shell integration, use `cd $(wt co branch)`.\n\n## Commands\n\n### `wt create [directory]`\n\nConvert a standard git repo to bare+worktree layout:\n\n```\nmy-repo/             my-repo/\n├── .git/        →   ├── .bare/     ← shared git database\n├── src/             ├── .git       ← pointer to .bare\n└── README.md        └── main/      ← worktree on default branch\n                         ├── src/\n                         └── README.md\n```\n\nPreserves untracked files. Rolls back automatically on failure.\n\n### `wt checkout \u003cbranch\u003e` (alias: `wt co`)\n\nCreate or switch to a worktree. If the worktree already exists, switches to it. If not, creates it.\n\n```bash\nwt co feature-branch       # existing branch\nwt co -b my-new-feature    # new branch\n```\n\nBranch names with `/` are flattened to `-` for directory names (`feature/foo` → `feature-foo`).\n\n### `wt remove \u003cbranch\u003e` (alias: `wt rm`)\n\nRemove a worktree:\n\n```bash\nwt rm feature-branch                    # remove worktree, keep branch\nwt rm feature-branch --delete-branch    # remove worktree + branch\nwt rm feature-branch --force            # force removal\n```\n\n### `wt list`\n\nList all worktrees in the bare repo.\n\n### `wt init \u003cbash|zsh|fish\u003e`\n\nOutput a shell wrapper function for auto-cd on checkout.\n\n## Agent skills\n\nThis package bundles a skill at `skills/wt-worktree-workflow/` for coding agents via the [skills-npm](https://github.com/antfu/skills-npm) convention.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericoo%2Fworktree-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffredericoo%2Fworktree-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffredericoo%2Fworktree-cli/lists"}