An open API service indexing awesome lists of open source software.

https://github.com/yixiaojiu/git-user-manager

CLI tool for managing git config multiple users
https://github.com/yixiaojiu/git-user-manager

cli git git-config tools

Last synced: 16 days ago
JSON representation

CLI tool for managing git config multiple users

Awesome Lists containing this project

README

        

# Git User Manager

reference [lexmin0412/gcm.git](https://github.com/lexmin0412/gcm.git)

When you develop for your company and your own projects, you need to switch `user.name` and `user.email` frequently.

This CLI tool is capable of managing the Git user configuration for multiple users efficiently, which will help a lot.

## Install

```sh
cargo install --git https://github.com/yixiaojiu/git-user-manager
```

## Usage

```
Usage: gum

Commands:
add add user config
remove use alias to remove a user config
list list all user config
use use alias to change git user config
include conditional include, reference https://git-scm.com/docs/git-config#_conditional_includes
info View git username and email configuration
help Print this message or the help of the given subcommand(s)

Options:
-h, --help Print help
-V, --version Print version
```

For example:

```sh
# add a user
# alias: github
# name: bar
# email: [email protected]
gum add github bar [email protected]

# use github alias to change git user config
gum use github
```