{"id":19748810,"url":"https://github.com/jnbdz/gitmultihost","last_synced_at":"2026-04-13T01:36:14.607Z","repository":{"id":226140526,"uuid":"767094432","full_name":"jnbdz/gitmultihost","owner":"jnbdz","description":"A tool to help quickly select an SSH host for git clone and git remote. 🐙","archived":false,"fork":false,"pushed_at":"2024-03-22T23:10:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T08:14:00.984Z","etag":null,"topics":["bash","git","git-multi-profile","shell","ssh-hosts","utility"],"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/jnbdz.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":"2024-03-04T17:36:06.000Z","updated_at":"2024-03-19T21:57:01.000Z","dependencies_parsed_at":"2025-02-28T00:36:48.326Z","dependency_job_id":"a19af0b4-4948-491c-8de9-16764d436466","html_url":"https://github.com/jnbdz/gitmultihost","commit_stats":null,"previous_names":["jnbdz/gitmultihost"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jnbdz/gitmultihost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnbdz%2Fgitmultihost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnbdz%2Fgitmultihost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnbdz%2Fgitmultihost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnbdz%2Fgitmultihost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jnbdz","download_url":"https://codeload.github.com/jnbdz/gitmultihost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jnbdz%2Fgitmultihost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267633670,"owners_count":24118777,"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-07-29T02:00:12.549Z","response_time":2574,"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","git-multi-profile","shell","ssh-hosts","utility"],"created_at":"2024-11-12T02:23:40.070Z","updated_at":"2026-04-13T01:36:09.570Z","avatar_url":"https://github.com/jnbdz.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitmultihost\nShell tool to facilitate the usage of `git` in a context where you have multiple hosts in your `~/.ssh/config`.\n\nThis script automatically catches the HTTPS or the SSH url and then using [`fzf`](https://github.com/junegunn/fzf) (general-purpose command-line fuzzy finder) to give you a quick way to select a host that is in `~/.ssh/config`.\n\n## Install\n```bash\nsudo make install\n```\n\n## How-to\n### Cloning a repo\n```bash\ngitmultihost clone git@github.com:user/repo.git\n```\nWhat follows is [`fzf`](https://github.com/junegunn/fzf) listing the hosts. After selecting a host it will change the `github.com` (or any other domain name) with the host selected.\n\n### Changing the remote origin\nThis is useful if there are already repositories that have not been configured to used one of the hosts.\n```bash\ngitmultihost remote set-url origin git@github.com:user/repo.git\n```\nIt will do the same as cloning and will ask you with [`fzf`](https://github.com/junegunn/fzf) what host you want to use.\n\n### Any Other Command\nThose were just examples of what can be done with the tool. Any other `git` command can be used and every time there is a HTTPS or a SSH url it will give the option to select a different host based on what is in `~/.ssh/config`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnbdz%2Fgitmultihost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjnbdz%2Fgitmultihost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjnbdz%2Fgitmultihost/lists"}