gitswitch
Switch git identity and GitHub account using the gitswitch tool when the user is committing or pushing as the wrong account. Use this skill whenever the user mentions: their commits showing the wrong name/email, pushing to the wrong GitHub account, needing to switch git profiles, wanting to check which git identity is active, getting attribution errors on commits, working across multiple GitHub accounts (personal vs work, multiple clients), or any time the phrase "wrong account" or "wrong identity" appears in a git/GitHub context. Don't wait for the user to say "gitswitch" — if the problem smells like a git identity mismatch, invoke this skill. --- # gitswitch skill `gitswitch` is a terminal tool (installed via Homebrew or curl) that manages multiple local git identities. It switches `git config user.name`, `git config user.email`, the SSH key, and (optionally) the `gh` CLI account — all at once, with one command. ## When to use it Reach for `gitswitch` whenever: - A commit landed with the wrong author name or email - The user is about to push to a work/client repo but is still on their personal identity - The user asks "which git account am I on?" - The user needs to add a new profile for a new job, client, or side project - The user is confused about why `gh` and `git` show different accounts (they're independent) ## Step 1 — Diagnose Always check what's currently active before doing anything: ```bash gitswitch current # shows active profile name + email gitswitch list # shows all profiles, ✓ marks the active one ``` If `gitswitch` is not installed, say so clearly and offer the install instructions: ```bash # Homebrew (recommended): brew install aksisonline/tap/gitswitch # Or, without Homebrew (curl one-liner):
Changelog: Source: GitHub https://github.com/aksisonline/gitswitch
Loading comments...