Gh cgu
gh-cgu is a GitHub CLI extension for saving git user profiles (name/email) and switching the active one per repository. Use when switching or managing git user/author identity.From its SKILL.md
npx -y skills add canoypa/gh-cgu --skill gh-cguAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.4 KB, 327 tokens by cl100k_base, as published. Nobody here has run it
gh-cgu
gh-cgu is a GitHub CLI extension that saves git user profiles (name/email) and applies one to a repository.
Each profile is identified by a short key (auto-derived from the name, or set explicitly with --key) and activated with gh cgu use <key>.
Commands
# Show current git user in this repo
gh cgu
# List / apply a saved profile
gh cgu list
gh cgu use <key>
# Manage profiles
gh cgu add <name> <email>
gh cgu add <name> <email> --key <key> # override the auto-derived key
gh cgu edit <key> [--name <name>] [--email <email>] [--key <new-key>]
gh cgu remove <key>
Notes
Profile keys are derived from <name> 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.
gh cgu useworks in normal clones, git worktrees, and submodules.gh cgu edit --key <new-key>fails if<new-key>already exists.- Profiles are stored in
~/.config/gh-cgu/config.ymland synced to a private Gist automatically
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.