{"id":15770702,"url":"https://github.com/benelan/git-mux","last_synced_at":"2026-03-05T01:02:26.387Z","repository":{"id":173424676,"uuid":"625406058","full_name":"benelan/git-mux","owner":"benelan","description":"A git + tmux (or wezterm) lovechild for blazingly fast movement between projects and tasks.","archived":false,"fork":false,"pushed_at":"2025-05-23T05:45:52.000Z","size":181,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-11T15:46:40.060Z","etag":null,"topics":["cli","fzf","git","posix","shell","tmux","wezterm","wip"],"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/benelan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-04-09T02:23:50.000Z","updated_at":"2025-08-02T12:45:43.000Z","dependencies_parsed_at":"2023-12-26T05:19:28.827Z","dependency_job_id":"7eb644b1-092c-4da3-8d86-9995f443c9d6","html_url":"https://github.com/benelan/git-mux","commit_stats":null,"previous_names":["benelan/git-mux","benelan/shutils"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/benelan/git-mux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fgit-mux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fgit-mux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fgit-mux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fgit-mux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benelan","download_url":"https://codeload.github.com/benelan/git-mux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benelan%2Fgit-mux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30104218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T00:38:46.881Z","status":"ssl_error","status_checked_at":"2026-03-05T00:38:45.829Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","fzf","git","posix","shell","tmux","wezterm","wip"],"created_at":"2024-10-04T14:43:41.925Z","updated_at":"2026-03-05T01:02:26.224Z","avatar_url":"https://github.com/benelan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git mux\n\nA git + tmux (or wezterm) lovechild for blazingly fast movement between projects and tasks.\n\n\u003e **NOTE:** the README is a WIP; [RTFM](./docs/MANUAL.md).\n\n## Installation\n\nThe `stable` tag will always point to the latest release. Active development\noccurs on the `master` branch, which you can think of as `nightly`. See the\n[changelog](./CHANGELOG.md) for details about features and fixes released in\neach version.\n\nUse one of the following methods to install `git-mux`.\n\n### `curl`\n\n\u003e [!WARNING]\n\u003e This install method will not work for Wezterm users.\n\nThe **recommended** way to install `git-mux` for tmux users is by using `curl` or `wget` to download\nthe executable and `man` page to somewhere on your `$PATH`. For example, with\n`curl`:\n\n```sh\nmkdir -p ~/.local/bin ~/.local/share/man/man1\ncurl -Lo ~/.local/share/man/man1/git-mux.1 \\\n    https://raw.githubusercontent.com/benelan/git-mux/stable/bin/man/man1/git-mux.1\ncurl -Lo ~/.local/bin/git-mux \\\n    https://raw.githubusercontent.com/benelan/git-mux/stable/bin/git-mux\nchmod +x ~/.local/bin/git-mux\n```\n\nTo uninstall:\n\n```sh\nrm -f ~/.local/bin/git-mux ~/.local/share/man/man1/git-mux.1\n```\n\n### `git clone`\n\nAnother option is to clone the repo and add the `bin` directory to your `$PATH`.\nThis allows you to easily update the script with a single command (e.g.,\n`git -C ~/.git-mux pull`). For example, bash users can run the following:\n\n```sh\ngit clone -b stable https://github.com/benelan/git-mux.git ~/.git-mux\necho 'export PATH=\"$PATH:~/.git-mux/bin\"' \u003e\u003e~/.bashrc \u0026\u0026 bash -l\n```\n\nTo uninstall, remove `~/.git-mux` and the `PATH` addition line in `~/.bashrc`.\n\nAn alternative to the `PATH` addition is using `make install` after cloning the\nrepo:\n\n```sh\npushd ~/.git-mux \u0026\u0026 sudo make install \u0026\u0026 popd\n```\n\nYou can remove `~/.git-mux` after installing with this method, since the\nnecessary files will be copied to system directories.\n\nThe above command will install `git-mux` for all users on the system. If you\ndon't have `sudo` privileges or only want to install for the current user, you\ncan specify the installation directory's `PREFIX`:\n\n```sh\nmake install PREFIX=~/.local\n```\n\nWhen uninstalling, make sure to specify the `PREFIX` if you changed it during\ninstallation:\n\n```sh\npushd ~/.git-mux \u0026\u0026 make uninstall PREFIX=~/.local \u0026\u0026 popd \u0026\u0026 rm -rf ~/.git-mux\n```\n\n## Usage\n\nSee `man git-mux` in the terminal, or the [markdown version](./docs/MANUAL.md)\nin the browser.\n\n### Terminology\n\n#### project\n\nA project is a tmux session or wezterm workspace. Projects can be any directory, but they are\nusually the root of a git repository.\n\n#### task\n\nA task is a tmux window or wezterm tab. Tasks can be a subdirectory of a project (e.g.\n`packages/ui-components`), a command (e.g. `npm install`), or a git worktree/branch.\n\n## Tips\n\nYou can add bash completion of git branch names to `git-mux`, which is useful\nfor the `task` command.\n\n```sh\n# Load git completion so it can be applied to executables and aliases\nif ! declare -F __git_complete \u003e/dev/null 2\u003e\u00261; then\n    _completion_loader git \u003e/dev/null 2\u003e\u00261\nfi\n\n# only works for `git-mux task`, not `git mux task`\n__git_complete git-mux git_checkout\n\n# Or create an alias since only the task command needs git branch completion\nalias gxt=\"git mux task\"\n__git_complete gxt git_checkout\n```\n\nI have the following keybindings in my `~/.tmux.conf` for blazingly fast\nnavigation.\n\n```sh\n%if #{\u003e=:#{version},3.2}\n  bind C-p popup -E -E git-mux project\n  bind C-t popup -E -E git-mux task\n%else\n  bind C-p new-window -c \"#{pane_current_path}\" git-mux project\n  bind C-t new-window -c \"#{pane_current_path}\" git-mux task\n%endif\n\nbind C-n run \"git-mux project ~/dev/notes\"\nbind C-x run \"git-mux project ~/dev/personal/git-mux\"\nbind C-c run \"git-mux project ~/dev/work/acme-components\"\n```\n\nI also have the following in my `~/.bashrc`, which creates and/or attaches\nto a tmux session on startup.\n\n```sh\n[ -z \"$TMUX\" ] \u0026\u0026 command -v git-mux \u003e/dev/null 2\u003e\u00261 \u0026\u0026 git-mux project \"$PWD\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenelan%2Fgit-mux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenelan%2Fgit-mux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenelan%2Fgit-mux/lists"}