Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【自荐工具】Git 多用户配置管理器 #1816

Open
gauseen opened this issue Jun 25, 2021 · 0 comments
Open

【自荐工具】Git 多用户配置管理器 #1816

gauseen opened this issue Jun 25, 2021 · 0 comments

Comments

@gauseen
Copy link

gauseen commented Jun 25, 2021

背景

当工作项目 Git user 配置和个人项目的配置不同时,需要手动去 git config user.name git config user.email 这些操作,相对比较繁琐,gum 这个工具就是 Git user config manager,方便 Git user 配置及管理。

Install

$ npm i -g @gauseen/gum

Example

$ gum list

Currently used name=gauseen [email protected]
┌────────────┬─────────┬─────────────────────────┐
│ group-name │    name │                   email │
├────────────┼─────────┼─────────────────────────┤
│    global  │ gauseen │ [email protected]       │
│    user1   │ li si   │ [email protected]          │
│    user2   │ wang er │ [email protected]        │
└────────────┴─────────┴─────────────────────────┘
$ gum use user1

Currently used name=li si [email protected]

Usage

Usage: gum [options] [command]

Commands:
  list                        List all the user config group
  set [options] <group-name>  Set one group for user config
    --name                    User name
    --email                   User email
  use [options] <group-name>  Use one group name for user config
    --global                  Git global config
  delete <group-name>         Delete one group
  help [command]              display help for command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants