{"id":31720911,"url":"https://github.com/nezteb/git-account-switcher","last_synced_at":"2025-10-09T03:20:19.815Z","repository":{"id":77400747,"uuid":"184160731","full_name":"Nezteb/git-account-switcher","owner":"Nezteb","description":null,"archived":false,"fork":false,"pushed_at":"2019-04-30T16:31:44.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T01:58:16.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nezteb.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":"2019-04-29T23:56:13.000Z","updated_at":"2024-06-19T11:05:52.496Z","dependencies_parsed_at":null,"dependency_job_id":"2b8f7bb5-a0de-4d1e-b095-0f1b82eecc79","html_url":"https://github.com/Nezteb/git-account-switcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Nezteb/git-account-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgit-account-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgit-account-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgit-account-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgit-account-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nezteb","download_url":"https://codeload.github.com/Nezteb/git-account-switcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nezteb%2Fgit-account-switcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000712,"owners_count":26082911,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-10-09T03:19:39.709Z","updated_at":"2025-10-09T03:20:19.810Z","avatar_url":"https://github.com/Nezteb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Account Switcher\n\nThe original script I wrote for this is `git-account-switcher.sh`. It is bad; it only works for two accounts and requires setting environment variables.\n\n# TODO\n\n- Implement `help`, `add`, `remove`, `switch`.\n- Figure out how to store usernames, key locations. Probably a config file.\n- Figure out how to check current git account. Probably with SSH key parsing (like the script does).\n\n# Future Documentation\n\nSo far this is only targeting Github accounts via SSH. Other providers and HTTPS will come later.\n\nTo build/install: `make`\n\nFun fact: any executable in your PATH named `git-\u003ccommand\u003e` is automatically retrieved by `git` so you can run it as a subcommand: `git \u003ccommand\u003e`.\n- `git-myCommand` -\u003e `git myCommand`\n- `git-doMagic.sh` -\u003e `git doMagic`\n- And so on.\n\n\nIn this case, this repo is named `git-account-switcher`, but the command is `git-account`, so you would run it as: `git account`.\n\nBasic usage: `git account help`\n\nSubcommands:\n- `git account init {name}`\n  - Initialize the tool with the currently active git account and name it `{name}`.\n  - Not required to run, but convenient.\n- `git account list`\n  - Returns a list of all accounts registered with the tool.\n- `git account add {name}`\n  - Add a new account and name it `{name}`.\n- `git account remove {name}`\n  - Remove the account with the name of `{name}`.\n- `git account switch {name}`\n  - Switch to the registered account with the name of `{name}`.\n\n`init`, `add`, and `switch` will fail if the given name is already regisetered.\n\n`remove` will fail if the given name is not already registered.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezteb%2Fgit-account-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnezteb%2Fgit-account-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezteb%2Fgit-account-switcher/lists"}