{"id":22446765,"url":"https://github.com/benjamin-carpene/git-switch-worktree","last_synced_at":"2025-09-09T00:34:22.271Z","repository":{"id":266748240,"uuid":"885081848","full_name":"benjamin-carpene/Git-Switch-Worktree","owner":"benjamin-carpene","description":"A powerful git switch alternative for worktrees","archived":false,"fork":false,"pushed_at":"2024-12-09T12:57:26.000Z","size":11,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T23:00:33.410Z","etag":null,"topics":["bash","git","script","switch","worktree","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/benjamin-carpene.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}},"created_at":"2024-11-07T23:23:36.000Z","updated_at":"2024-11-10T20:44:48.000Z","dependencies_parsed_at":"2024-12-05T23:17:50.861Z","dependency_job_id":"fa48448a-d999-49ef-89c8-030d29208db6","html_url":"https://github.com/benjamin-carpene/Git-Switch-Worktree","commit_stats":null,"previous_names":["benjamin-carpene/git-switch-worktree"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/benjamin-carpene/Git-Switch-Worktree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-carpene%2FGit-Switch-Worktree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-carpene%2FGit-Switch-Worktree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-carpene%2FGit-Switch-Worktree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-carpene%2FGit-Switch-Worktree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benjamin-carpene","download_url":"https://codeload.github.com/benjamin-carpene/Git-Switch-Worktree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benjamin-carpene%2FGit-Switch-Worktree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231107,"owners_count":25245687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":["bash","git","script","switch","worktree","zsh"],"created_at":"2024-12-06T04:10:29.074Z","updated_at":"2025-09-09T00:34:22.240Z","avatar_url":"https://github.com/benjamin-carpene.png","language":"Shell","readme":"# Description\n\nGit Switch Worktree (GSW) is a simple yet powerfull git utility used for navigating between git worktrees.\nIt enables the user to navigate in worktrees using `gsw` in the same way as they would use `git switch` in a bare repository.\n\n# Features\n\n- Navigate through worktree directories for a given repository\n- Still works like a charm on bare repo\n- Uses FZF's TUI for choosing a worktree wen no argument given\n- Has a 'last worktree' feature (`gsw -`) for switching to the last worktree\n    - Works on a **PER REPOSITORY** basis, to not mix oranges and apples\n    - You can still use `gsw --` if you want to use the default `git switch -` option\n- Is a lightweight bash function, that can be simply copy-pasted or sourced in your rc file\n- Works on bash and zsh\n\n\n# Synopsis\n\n`gsw [BRANCH]`\n- With `[BRANCH]` the optional argument branch that we will switch to\n- If no branch is given, FZF's TUI is used for the user to choose his branch\n- If the branch is a worktree, `gsw` switches to it (goes to the right directory)\n- If the selected branch is not a worktree, `gsw` simply switches to it as a regular `git switch` command\n\n# Dependencies\n- `git` (obviously)\n- `fzf` for the TUI\n- A `bash` or/and `zsh` interpreter\n- That's all 😀\n\n# Installation\n\nRun the `./install.sh` script on this repo, which installs the script in `~/.local/share`.\n*Nota : It comes with its own alias named after himself, if **like me** you already had a `gsw` alias for git switch.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamin-carpene%2Fgit-switch-worktree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenjamin-carpene%2Fgit-switch-worktree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenjamin-carpene%2Fgit-switch-worktree/lists"}