{"id":50389336,"url":"https://github.com/illegalstudio/ggw","last_synced_at":"2026-05-30T17:03:47.990Z","repository":{"id":360701426,"uuid":"1234742460","full_name":"illegalstudio/ggw","owner":"illegalstudio","description":"Ergonomic Git worktree manager for Go, with predictable storage, shell cd integration, and GitHub PR checkout support.","archived":false,"fork":false,"pushed_at":"2026-05-27T13:25:16.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-27T15:19:13.270Z","etag":null,"topics":["cli","developer-tools","git","github","github-cli","go","golang","productivity","pull-requests","worktrees"],"latest_commit_sha":null,"homepage":"","language":"Go","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/illegalstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"nahime0"}},"created_at":"2026-05-10T15:29:10.000Z","updated_at":"2026-05-27T13:24:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/illegalstudio/ggw","commit_stats":null,"previous_names":["illegalstudio/ggw"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/illegalstudio/ggw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Fggw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Fggw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Fggw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Fggw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/illegalstudio","download_url":"https://codeload.github.com/illegalstudio/ggw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/illegalstudio%2Fggw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33700892,"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-05-30T02:00:06.278Z","response_time":92,"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":["cli","developer-tools","git","github","github-cli","go","golang","productivity","pull-requests","worktrees"],"created_at":"2026-05-30T17:03:47.266Z","updated_at":"2026-05-30T17:03:47.979Z","avatar_url":"https://github.com/illegalstudio.png","language":"Go","funding_links":["https://github.com/sponsors/nahime0"],"categories":[],"sub_categories":[],"readme":"# GGW (Go Git Worktrees)\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Follow @nahime0 on X](https://img.shields.io/badge/Follow%20@nahime0-black?logo=x)](https://x.com/nahime0)\n\nGit worktrees, ergonomic. Stores all worktrees of all your repos in a single\npredictable location, derived from the repo's `origin` remote and the branch\nname.\n\n```\n~/.local/share/worktrees/\u003corg\u003e/\u003crepo\u003e/\u003cbranch-slug\u003e/\n```\n\nFor example, in a repo whose `origin` is `git@github.com:acme/api.git`:\n\n| Branch          | Worktree path                                          |\n|-----------------|--------------------------------------------------------|\n| `feature/login` | `~/.local/share/worktrees/acme/api/feature-login/`     |\n| `hotfix-123`    | `~/.local/share/worktrees/acme/api/hotfix-123/`        |\n| `BugFix/User A` | `~/.local/share/worktrees/acme/api/bugfix-user-a/`     |\n\n`XDG_DATA_HOME` is respected: if set, worktrees live under\n`$XDG_DATA_HOME/worktrees/...`.\n\nThe branch name is **not** slugified — it is passed unchanged to git.\nOnly the directory name is slugified.\n\n## Install\n\n### Homebrew\n\n```bash\nbrew install illegalstudio/tap/ggw\n```\n\n### Go\n\n```bash\ngo install github.com/illegalstudio/ggw/cmd/ggw@latest\n```\n\n### From source\n\n```bash\ngit clone https://github.com/illegalstudio/ggw.git\ncd ggw\nmake \u0026\u0026 make install\n```\n\n## Usage\n\n```bash\n# from inside a repo:\nggw list                              # show all worktrees of the current repo\nggw list --json                       # machine-readable output\nggw create feature/login              # create worktree at .../\u003corg\u003e/\u003crepo\u003e/feature-login/\n                                      # creates the branch from HEAD if it does not exist\nggw create fix --from main            # create branch from a specific base\nggw pr 123                            # create a tracked worktree for GitHub PR #123 (requires gh)\nggw cd feature/login                  # cd into a worktree (needs shell integration, see below)\nggw cd                                # interactive selector\nggw exec feature/login -- npm install # run a command inside a worktree\nggw delete feature/login              # remove a worktree and its branch (prompts to confirm)\nggw delete feature/login --without-branch --force  # keep the branch, skip confirm\n\n# Print the installed version\nggw --version\n```\n\n`ggw pr \u003cid\u003e` uses [GitHub CLI](https://cli.github.com/) to check out the PR\nbranch, so the created worktree keeps the tracking configuration that allows\n`git push` when GitHub permits pushing to the PR branch.\n\n## Shell integration\n\n`ggw cd` needs a shell wrapper to actually change your shell's directory.\nAdd to your shell config (once):\n\n```bash\neval \"$(ggw shell-init bash)\"   # in ~/.bashrc\neval \"$(ggw shell-init zsh)\"    # in ~/.zshrc\nggw shell-init fish | source    # in ~/.config/fish/config.fish\n```\n\nThe wrapper intercepts `ggw cd` and turns it into a real `cd`. Every other\nsubcommand (`list`, `create`, ...) passes through unchanged.\n\nWithout the wrapper, `ggw cd \u003cname\u003e` simply prints the worktree path on\nstdout — useful for `cd \"$(ggw cd foo)\"` or piping into other tools.\n\n## Docs\n\n- [Commands Reference](docs/commands.md)\n- [Shell Integration](docs/shell-integration.md)\n- [Storage Layout](docs/storage.md)\n\n## See also\n\n- [`ggg`](https://github.com/illegalstudio/ggg) — the sister project that inspired `ggw`.\n\n## Status\n\nAll commands are operative. See [`ROADMAP.md`](ROADMAP.md) for the\nbacklog (config file, post-create hooks, completions, releases).\n\n## License\n\nMIT — see [`LICENSE`](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalstudio%2Fggw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillegalstudio%2Fggw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillegalstudio%2Fggw/lists"}