Awesome-omni-skill git-sw
Easily switch between multiple Git profiles/configs (TUI + Automated mode)
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/tools/git-sw" ~/.claude/skills/diegosouzapw-awesome-omni-skill-git-sw && rm -rf "$T"
manifest:
skills/tools/git-sw/SKILL.mdsource content
git-sw 🔄
A CLI tool to switch between multiple Git profiles/configs. Supports both an interactive TUI for humans and a flag-based mode for agents.
Usage (Agent/Automated)
Always use the
--no-tui flag when calling this tool from an agent session.
List Profiles
git-sw --no-tui list
Create a Profile
git-sw --no-tui --profile <name> --name "<user-name>" --email "<user-email>" create # With signing key git-sw --no-tui --profile <name> --name "<user-name>" --email "<user-email>" --signing-key <key> --key-format <format> create
Switch Profile
# Locally git-sw --no-tui --profile <name> use # Globally git-sw --no-tui --profile <name> -g use
Delete a Profile
git-sw --no-tui --profile <name> --yes delete
Options
: Required for non-interactive usage.--no-tui
: The name of the profile.--profile
: Git user name.--name
: Git user email.--email
: Signing key (GPG key ID, SSH pub path, or X.509 cert).--signing-key
: Signing key format:--key-format
,openpgp
, orssh
.x509
: GPG program path (default:--gpg-program
).gpg
: Bypasses confirmation prompts.--yes
: Global mode.-g