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
- Host: GitHub
- URL: https://github.com/yixiaojiu/git-user-manager
- Owner: yixiaojiu
- License: mit
- Created: 2024-02-26T10:39:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-08T08:28:16.000Z (9 months ago)
- Last Synced: 2025-02-13T21:22:54.478Z (2 months ago)
- Topics: cli, git, git-config, tools
- Language: Rust
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: gumCommands:
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
```