{"id":18650909,"url":"https://github.com/aimuz/git-user","last_synced_at":"2026-05-08T15:02:37.812Z","repository":{"id":61624850,"uuid":"305311025","full_name":"aimuz/git-user","owner":"aimuz","description":"Git Multiple Identity Manager, Automatic identity switching according to the warehouse, personal and work isolation","archived":false,"fork":false,"pushed_at":"2023-01-05T08:42:16.000Z","size":62,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-15T06:03:17.333Z","etag":null,"topics":["git","gituser","golang","multiple-identity-manager","zsh"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimuz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-19T08:15:30.000Z","updated_at":"2023-01-17T10:19:52.000Z","dependencies_parsed_at":"2023-02-03T21:00:38.622Z","dependency_job_id":null,"html_url":"https://github.com/aimuz/git-user","commit_stats":null,"previous_names":["aimuz/git-pro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimuz/git-user","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fgit-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fgit-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fgit-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fgit-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimuz","download_url":"https://codeload.github.com/aimuz/git-user/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimuz%2Fgit-user/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267827337,"owners_count":24150345,"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-30T02:00:09.044Z","response_time":70,"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":["git","gituser","golang","multiple-identity-manager","zsh"],"created_at":"2024-11-07T06:47:26.402Z","updated_at":"2026-01-12T02:48:35.699Z","avatar_url":"https://github.com/aimuz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-user[beta]\n\n\u003e Switching identities on Git is easy, but the trouble is that different repositories may need different identities to commit and pull.\n\ngit multi user management\n\n## Install\n\nUsers with go environment\n\n```zsh\ngo install github.com/aimuz/git-user/cmd/git-user\n```\n\nVerify installation\n\n```zsh\ngit user -v\n```\n\n## Usage\n\n```zsh\ngit user\n```\n\n```text\ngit multi user management\n\nUsage:\n git user [command] [flags]\n git user [command]\n\nExamples:\n git user create --title example --user example --email example@example.com\n git user create --title example --user example --email example@example.com -i ~/.ssh/id_rsa\n git user list\n git user use example\n\nCommands:\n git user clean       Clean current repo username and email configuration\n git user create      create a new git user\n git user help        Help about any command\n git user list        list all git users\n git user use         Switch the current repo git user\n\nFlags:\n      --data string    (default \"/Users/aimuz/.config/git-user/user.yaml\")\n  -h, --help          help for user\n  -v, --version       version for user\n\nUse \"user [command] --help\" for more information about a command.\n\n```\n\n### Create User\n\nHelp:\n\n```zsh\n$ git user create --help \nUsage:\n git user create [flags]\n\nAliases:\n create, a\n\nExamples:\n git user create --title example --user example --email example@example.com\n git user create --title example --user example --email example@example.com -i ~/.ssh/id_rsa\n\nFlags:\n      --email string           git user email\n  -h, --help                   help for create\n  -i, --identity_file string   The certificate corresponding to the user. If it is blank, the default value will be used\n      --title string           if it is empty, username will be used\n      --user string            git user name\n\nGlobal Flags:\n      --data string    (default \"/Users/aimuz/.config/git-user/user.yaml\")\n```\n\n```zsh\n$ git user create --title example --user example --email example@example.com\nSuccessfully created example user\n```\n\n### List All Users\n\n```zsh\n$ git user list                                                             \nTITLE           USER            EMAIL                   IDENTITY FILE   GPG KEY  \nexample         example         example@example.com     \n```\n\n### Switch Current Repository User\n\n`git user use [title]`\n\n```zsh\n$ git user use example \nUser set successfully\n```\n\n## TODO\n\n- [ ] AutoEnable\n\n      Automatically enable the specified account\n- [x] GPG support\n- [ ] SSH Identity\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimuz%2Fgit-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimuz%2Fgit-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimuz%2Fgit-user/lists"}