Skip to main content

A tool to manage git user profile from the terminal

Project description

Git User Manager

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.

Features

  • Add new Git user credentials interactively

  • Remove existing Git user credentials

  • List all saved Git user credentials

  • Set active Git user credentials

Installation

You can install git-user-manager from PyPI:

pip install git-user-manager

Usage

The 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]

Commands and Arguments

  • -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.

Examples

  • Add a New User
git-user-manager --add

This command will prompt you to enter your username, full name, and email interactively.

  • Remove an Existing User
git-user-manager --remove

This command will prompt you to select one or more users to remove.

  • List All Saved Users
git-user-manager --list

This command will list all saved user credentials.

  • Set the Active User
git-user-manager --set username

This command will set the specified username as the active Git user.

Configuration

The user credentials are stored in a JSON file located at ~/.config/git-user-manager/credentials.json.

Contributing

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_user_manager-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

git_user_manager-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file git_user_manager-1.0.1.tar.gz.

File metadata

  • Download URL: git_user_manager-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.0

File hashes

Hashes for git_user_manager-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a9d6a57a293c64ab3de1fee1cdde29b03b35f91981b749e68ca55c0201caa125
MD5 54dae5320f13176bd2ca51bd06dc3f2b
BLAKE2b-256 e648efdbc5bd485d66b4477c65c7501bda7761eb4f1713438c562fee76bf72bf

See more details on using hashes here.

File details

Details for the file git_user_manager-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for git_user_manager-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c32dfab95d16618342caf852c355b01f248692a96170c16304c32ffe17e075
MD5 9e62fc79db6eed9540815df0dd467135
BLAKE2b-256 048fab2fcd0e6b147fb42b666ee2f6f3839446182f75b5a786cfb61e99576c88

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page