git-user-manager is a Python CLI tool designed to help you manage multiple Git user profiles. This tool makes it easy to configure and switch between different Git user credentials, which is particularly useful if you work on multiple projects with different Git accounts.
- Add new Git user credentials interactively
- Remove existing Git user credentials
- List all saved Git user credentials
- Set active Git user credentials
You can install git-user-manager from PyPI:
pip install git-user-managerThe git-user-manager tool provides several command-line arguments to manage your Git user credentials.
usage: git-user-manager [-h] [--add] [--remove] [--list] [--set user] [--user user] [--name name] [--email email]- -h, --help: Show the help message and exit.
- --add: Use this argument to set credentials.
- --remove: Use this argument to remove credentials.
- --list: Use this argument to list saved user credentials.
- --set user: Use this argument to set the active Git user.
- --user user, -u user: Specify your username.
- --name name, -n name: Specify your full name.
- --email email, -e email: Specify your Git email.
- Add a New User
git-user-manager --addThis command will prompt you to enter your username, full name, and email interactively.
- Remove an Existing User
git-user-manager --removeThis command will prompt you to select one or more users to remove.
- List All Saved Users
git-user-manager --listThis command will list all saved user credentials.
- Set the Active User
git-user-manager --set usernameThis command will set the specified username as the active Git user.
The user credentials are stored in a JSON file located at ~/.config/git-user-manager/credentials.json.
Contributions are welcome! Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License. See the LICENSE file for details.