A simple and efficient tool to easily manage multiple Git accounts per project.
git-switch allows you to quickly switch between different Git accounts (username, email, GPG key) based on your projects. Ideal for developers who work with multiple Git accounts (personal, professional, open-source, etc.) and want to avoid configuration errors.
- Management of multiple Git profiles (name, email, GPG key)
- Per-project configuration
- Easy installation and uninstallation
After cloning this repository, simply run:
chmod +x ./install.sh
sudo ./install.sh# Add a new account
git-switch -a personal
# List all available accounts
git-switch -l
# Use a specific account for the current project
git-switch -u professional
# Display help
git-switch -hAccounts are stored in ~/.config/git-switch/account/*.conf
To check the active Git configuration in a project:
git config user.name
git config user.email
git config user.signingkeyTo uninstall git-switch from the system:
chmod +x ./uninstall.sh
sudo ./uninstall.sh