@pollabd/gitu
v1.2.5
Published
Switch Git identity with one word. Zero setup. Pure bliss.
Maintainers
Readme
@pollabd/gitu
The simplest way to switch Git + GitHub identities — one word, zero config.
gitu personal # → instantly using your personal account
gitu work # → instantly using your work account
gitu who # → shows who you are right nowNo includeIf. No SSH config juggling. No env vars.
Just gitu <name> and you're done.
Why developers love gitu
- One command switches name + email + SSH key
- Perfect for personal + work + freelance + open-source accounts
- Works everywhere: Git Bash, PowerShell, WSL, macOS, Linux
- Zero setup after the initial
gitu add
Installation
npm install -g @pollabd/gituOne-time setup
# Personal account
gitu add personal "Sarah Connor" [email protected] ~/.ssh/id_ed25519_personal
# Work account
gitu add work "Sarah Connor" [email protected] ~/.ssh/id_ed25519_work
# Optional: default to personal in every new terminal
gitu default personalDaily use
gitu personal # → personal everything
gitu work # → work everything
gitu who # → Current: personal → [email protected]
gitu list # → List all identities (→ = active)
gitu # → Quick check (same as gitu who)Proof it works (run anytime)
gitu personal
ssh -T [email protected]
# → Hi sarahconnor! You've successfully authenticated...
gitu work
ssh -T [email protected]
# → Hi sarah-skynet! ...
git ls-remote [email protected]:sarahconnor/top-secret-project.git
# → Permission denied (publickey). ← YES, work key can't touch personal repos!All commands
| Command | Description |
| --------------------------------------------- | -------------------------- |
| gitu personal / gitu work | Switch identity |
| gitu who | Show current identity |
| gitu list | List all identities |
| gitu add <name> "<Full Name>" <email> <key> | Add or update identity |
| gitu default <name> | Set default for new shells |
| gitu rm <name> | Remove identity |
| gitu (no args) | Same as gitu who |
Tips
- Use short names:
p,w,a,b,oss,client1 - You can have 20+ identities, no slowdown
- Works perfectly with GitHub CLI, VS Code, npm, etc.
Uninstall
npm uninstall -g @pollabd/gitu
rm ~/.gitu.json
git config --global --unset core.sshCommand # optionalMade with love by @pollabd
Source & issues → https://github.com/pollabd/gitu
Never mix personal and work commits again.
