Giter Club home page Giter Club logo

git-user-manager's Introduction

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.

git-user-manager's People

Contributors

imegeek avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.