Manage multiple Git identities with style and zero hassle.
No more copy-pasting configs or messing with git config every time you switch between your work, personal, or freelance accounts.
With MultiGit, switching users is as easy as running a single command.
- π Check current user β instantly see which identity is active.
- π Switch users on the fly β swap between accounts in seconds.
- β Add new identities β organize personal, work, and side projects.
- π List saved users β keep track of all your Git personas.
- π¨ Interactive menu β or just run it with options for power users.
- π‘οΈ Safe & simple β users are stored in a JSON file, no magic, no headaches.
# Clone the repo
git clone https://github.com/yourusername/multigit.git
# Make it executable
chmod +x multigit.sh
# (Optional) Move it to a directory in your PATH
sudo mv multigit.sh /usr/local/bin/multigitRun it without arguments for the interactive menu:
multigitOr use commands directly:
multigit current # Show current Git user
multigit switch # Switch to another saved user
multigit add # Add a new user
multigit list # List all saved users
multigit help # Show helpβββββββββββββββββββββββββββββββββββββββ
π§ Git User Manager
βββββββββββββββββββββββββββββββββββββββ
π CURRENT USER
π€ Name: John Doe
π§ Email: john@work.com
π Current Repo: multigit
URL: git@github.com:john/multigit.git
# Add a work account
multigit add
# ID: work
# Name: John Doe
# Email: john@company.com
# Add a personal account
multigit add
# ID: personal
# Name: John Dev
# Email: john.dev@gmail.com
# Switch between them anytime
multigit switchBecause developers are multitaskers. You might be:
- contributing to open source with your personal account,
- pushing code at your day job,
- freelancing with a client repo,
- or all three in the same day.
MultiGit makes identity management painless. One command, zero headaches.
- Auto-detect SSH keys per user
- Export/import users across machines
- Fuzzy search for faster user switching
- Zsh/Bash completions
MultiGit β one CLI, all your Git identities.