{"id":21030986,"url":"https://github.com/canoypa/gh-cgu","last_synced_at":"2026-05-19T05:44:35.338Z","repository":{"id":64304757,"uuid":"445707103","full_name":"canoypa/gh-cgu","owner":"canoypa","description":"Change / Current Git User ","archived":false,"fork":false,"pushed_at":"2024-05-10T15:07:58.000Z","size":4178,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-05T13:46:09.103Z","etag":null,"topics":["gh-extension","git"],"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/canoypa.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-08T02:43:26.000Z","updated_at":"2024-05-10T15:08:02.000Z","dependencies_parsed_at":"2024-02-06T06:29:14.098Z","dependency_job_id":"6457fdf1-ac65-407a-9432-68c800c87bf7","html_url":"https://github.com/canoypa/gh-cgu","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canoypa%2Fgh-cgu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canoypa%2Fgh-cgu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canoypa%2Fgh-cgu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/canoypa%2Fgh-cgu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/canoypa","download_url":"https://codeload.github.com/canoypa/gh-cgu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243467359,"owners_count":20295375,"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","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":["gh-extension","git"],"created_at":"2024-11-19T12:23:08.090Z","updated_at":"2026-05-19T05:44:35.332Z","avatar_url":"https://github.com/canoypa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-cgu\n\nManage and switch git user profiles as a [GitHub CLI](https://cli.github.com/) extension.\n\n## Installation\n\n```shell\ngh extension install canoypa/gh-cgu\n```\n\n## Usage\n\n```shell\n# Show current git user\ngh cgu\n\n# Switch to a saved profile\ngh cgu use \u003ckey\u003e\n\n# Add a new profile\ngh cgu add \u003cname\u003e \u003cemail\u003e\ngh cgu add \u003cname\u003e \u003cemail\u003e --key \u003ckey\u003e  # override the auto-derived key\n\n# Edit an existing profile\ngh cgu edit \u003ckey\u003e --name \u003cname\u003e\ngh cgu edit \u003ckey\u003e --email \u003cemail\u003e\ngh cgu edit \u003ckey\u003e --key \u003cnew-key\u003e\n\n# Remove a profile\ngh cgu remove \u003ckey\u003e\n\n# List all profiles\ngh cgu list\n```\n\n## Profiles\n\nProfiles are stored in `~/.config/gh-cgu/config.yml` and automatically synced to a private Gist (`gh-cgu-{login}-config.yml`).\nOn first run with no local config, profiles are restored from the Gist automatically.\n\nProfile keys are derived from `\u003cname\u003e` by replacing spaces, underscores, and dots with hyphens (e.g. `Work User` → `work-user`, `user.name` → `user-name`). Unicode letters, digits, hyphens, and underscores are allowed; YAML-special characters (`. : # @` etc.) and whitespace are rejected. Use `--key` to override the auto-derived key.\n\n- `gh cgu use` works in normal clones, git worktrees, and submodules.\n- `gh cgu edit --key \u003cnew-key\u003e` fails if `\u003cnew-key\u003e` already exists.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanoypa%2Fgh-cgu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcanoypa%2Fgh-cgu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcanoypa%2Fgh-cgu/lists"}