{"id":13344212,"url":"https://github.com/yankeexe/git-worktree-switcher","last_synced_at":"2025-03-17T16:13:02.300Z","repository":{"id":43293822,"uuid":"356348053","full_name":"yankeexe/git-worktree-switcher","owner":"yankeexe","description":"Switch between git worktrees with speed. :zap:","archived":false,"fork":false,"pushed_at":"2024-07-25T01:43:10.000Z","size":17,"stargazers_count":152,"open_issues_count":3,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T14:19:18.090Z","etag":null,"topics":["bash","cli","cli-app","commandline","commandline-tool","git","linux","productivity","shell","shell-script","terminal-app","workflow-management","workflow-tool","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/yankeexe.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}},"created_at":"2021-04-09T17:19:36.000Z","updated_at":"2025-02-28T03:46:40.000Z","dependencies_parsed_at":"2024-10-24T07:43:56.955Z","dependency_job_id":"6113222e-b121-426b-b66c-d134ee9b6c21","html_url":"https://github.com/yankeexe/git-worktree-switcher","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeexe%2Fgit-worktree-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeexe%2Fgit-worktree-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeexe%2Fgit-worktree-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeexe%2Fgit-worktree-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yankeexe","download_url":"https://codeload.github.com/yankeexe/git-worktree-switcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066189,"owners_count":20392406,"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","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","cli","cli-app","commandline","commandline-tool","git","linux","productivity","shell","shell-script","terminal-app","workflow-management","workflow-tool","worktree","zsh"],"created_at":"2024-07-29T19:32:53.204Z","updated_at":"2025-03-17T16:13:02.278Z","avatar_url":"https://github.com/yankeexe.png","language":"Shell","readme":"# Git worktree switcher:zap:\nSwitch between git worktrees with speed. :zap:\n\n\u003cimg src = \"https://i.imgur.com/nPdneDT.gif\" width=\"600\" alt=\"demo of switching between git worktrees\" /\u003e\n\n## Installation\nDownload the script from the [Release section](https://github.com/yankeexe/git-worktree-switcher/releases).\n\nMake the script executable.\n\n```bash\n$ chmod +x wt\n```\n\nCopy the executable to any directory in your `$PATH`\n\n```bash\n$ sudo cp wt /usr/local/bin\n```\n\n## Tab Autocompletion :zap:\n\n**For Bash**\n```bash\nsudo cp completions/wt_completion /etc/bash_completion.d\n```\n\n**For ZSH**\n\u003e Note: completion file for zsh has `_` prefix\n\n\nFind paths where you can store your completion\n```bash\nprint -rl -- $fpath\n```\n\nCopy completion script to one of that location and restart the shell.\n\n```bash\nsudo cp completions/_wt_completion \u003cone-of-$fpath\u003e\n\nexec zsh\n```\n\n**For Fish**\n```bash\ncp completions/wt.fish ~/.config/fish/completions\n```\n---\nTab autocompletion works for switching between your worktrees.\n```bash\nwt \u003cTAB\u003e \u003cTAB\u003e\n\n# OR\n\nwt \u003ccompletion-characters\u003e \u003cTAB\u003e\n```\n\n## Usage\nSwitch between worktrees.\nYou can do a text search to change to the worktree directory.\n\n```bash\n$ wt \u003cworktree-name/search-term\u003e\n```\n\nGo to root worktree directory\n\n```bash\n$ wt -\n```\n\nList out all the worktrees.\n\n```bash\n$ wt list\n```\n\nShow help message\n\n```bash\n$ wt help\n```\n\nUpdate to the latest release\n\n```bash\n$ wt update\n```\n\nShow the CLI version\n\n```bash\n$ wt version\n```\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeexe%2Fgit-worktree-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyankeexe%2Fgit-worktree-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeexe%2Fgit-worktree-switcher/lists"}