Gguser
gguser is a CLI tool to easily switch between different Git user profiles.
Install / Use
/learn @withshubh/GguserREADME
gguser
gguser is a CLI tool to easily switch between different Git user profiles. It simplifies managing multiple GitHub or GitLab accounts by allowing users to switch between profiles effortlessly.
🚀 Installation
Install gguser globally using npm:
npm install -g gguser
🎯 Usage
Commands Overview
| Command | Description |
| ------------------------------------------------------------- | ------------------------------------------------- |
| gguser add <profile_name> "<full_name>" "<email>" [ssh_key] | Adds a new Git profile with an optional SSH key |
| gguser select | Opens an interactive menu to switch profiles |
| gguser <profile_name> | Switches directly to a specified Git profile |
| gguser now | Displays the currently configured Git user |
| gguser list | Lists all available Git profiles |
| gguser remove <profile_name> | Removes a specified Git profile |
| gguser link <profile_name> | Links a Git profile to a specific directory |
| gguser unlink | Removes a profile link from the current directory |
1️⃣ Add a new Git profile
gguser add <profile_name> "<full_name>" "<email>" [ssh_key]
Note: ssh_key is optional
Example:
gguser add work "Shubhendra Chauhan" "work@company" ~/.ssh/id_ed25520
gguser add personal "Shubhendra Singh Chauhan" "personalemail@gmail.com" ~/.ssh/id_ed25520
2️⃣ Switch to a Git profile
gguser select
Or switch directly:
gguser <profile_name>
3️⃣ Show the current Git user
gguser now
4️⃣ List all profiles
gguser list
5️⃣ Remove a profile
gguser remove <profile_name>
6️⃣ Link a profile to a directory
gguser link <profile_name>
This ensures that whenever you're inside that directory, the correct Git user is applied.
7️⃣ Unlink a directory
gguser unlink
📝 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
🎯 Contributing
We welcome contributions from the community! Follow these steps to contribute:
- Fork the repository on GitHub.
- Create a feature branch (
git checkout -b feature-new) - Commit your changes (
git commit -m "Added a new feature") - Push to GitHub (
git push origin feature-new) - Create a Pull Request 🚀
📬 Support
If you find an issue or want a new feature, create an issue here.
Related Skills
apple-reminders
337.1kManage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
gh-issues
337.1kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
healthcheck
337.1kHost security hardening and risk-tolerance configuration for OpenClaw deployments
node-connect
337.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
