{"id":47988943,"url":"https://github.com/ddmoyu/gus","last_synced_at":"2026-04-04T11:31:55.299Z","repository":{"id":39561214,"uuid":"447856889","full_name":"ddmoyu/gus","owner":"ddmoyu","description":"git user switch command-line app","archived":false,"fork":false,"pushed_at":"2023-02-01T01:04:00.000Z","size":64,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T15:19:03.871Z","etag":null,"topics":["cli","command-line","commandline-tool","github","user"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/ddmoyu.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}},"created_at":"2022-01-14T05:49:15.000Z","updated_at":"2022-01-25T03:45:40.000Z","dependencies_parsed_at":"2023-02-17T00:45:40.008Z","dependency_job_id":null,"html_url":"https://github.com/ddmoyu/gus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ddmoyu/gus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddmoyu%2Fgus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddmoyu%2Fgus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddmoyu%2Fgus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddmoyu%2Fgus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddmoyu","download_url":"https://codeload.github.com/ddmoyu/gus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddmoyu%2Fgus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31398109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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","command-line","commandline-tool","github","user"],"created_at":"2026-04-04T11:31:55.177Z","updated_at":"2026-04-04T11:31:55.275Z","avatar_url":"https://github.com/ddmoyu.png","language":"TypeScript","readme":"# gus \n\n![GitHub top language](https://img.shields.io/github/languages/top/ddmoyu/gus?style=for-the-badge) ![npm](https://img.shields.io/npm/v/@ddmoyu/gus?style=for-the-badge)\n\ngit user switch, support local and global.(切换 git 用户，支持本地和全局)\n\n![](./screenshot/00.png)\n\n## Usage \\ 使用\n```bash\nnpm i -g @ddmoyu/gus\ngus COMMAND\n```\n\n## Commands \\ 命令\n\n* `gus ls`\n* `gus add`\n* `gus rm`\n* `gus use`\n\n## `gus ls`\n```\nUSAGE\n $ gus ls\n\nDESCRIPTION\n list all users.  \n\nEXAMPLES\n $ gus ls\n  ╔═════════════════════════════════════════════╗\n  ║               Git users list                ║\n  ╟────┬────────┬──────────────────────┬────────╢\n  ║ ID │   Name │                Email │ Status ║\n  ╟────┼────────┼──────────────────────┼────────╢\n  ║ 0  │  test1 │      test1@gmail.com │ Local  ║\n  ╟────┼────────┼──────────────────────┼────────╢\n  ║ 1  │ ddmoyu │ daydaymoyu@gmail.com │ Global ║\n  ╟────┼────────┼──────────────────────┼────────╢\n  ║ 2  │  test2 │      test2@gmail.com │        ║\n  ╚════╧════════╧══════════════════════╧════════╝\n```\n\n## `gus add`\n```\nUSAGE\n $ gus add\n\nDESCRIPTION\n Add user.  \n\nEXAMPLES\n $ gus add moyu daydaymoyu@gmail.com\n\n // Add moyu successfull!\n```\n\n## `gus rm`\n```bash\nUSAGE\n $ gus rm\n\nDESCRIPTION\n remove user.\n\nEXAMPLES\n $ gus rm 0\n // or\n $ gus rm moyu\n\n // remove moyu successfull!\n```\n\n## `gus use`\n```txt\nUSAGE\n $ gus use\n\nDESCRIPTION\n use this user.\n\nFLAGS\n  -l   set the user as local user.(Default) \\ 设置该用户为当前仓库用户。 \n  -g   set the user as global user. \\ 设置该用户为全局仓库用户。\n\nEXAMPLES\n $ gus use 0 -l\n // or\n $ gus use moyu -g\n\n // use moyu successfull!\n```\n\n![Alt](https://repobeats.axiom.co/api/embed/ad5b43957b9b91ed267eea780e8f13cf580dbc1f.svg \"Repobeats analytics image\")\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddmoyu%2Fgus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddmoyu%2Fgus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddmoyu%2Fgus/lists"}