$ npm i -g @gauseen/gum
$ 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: gum [options] [command]
Options:
-V, --version output the version number
-h, --help display help for 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
- feat: Support
gum use <group-name> --global
commands that are not Git repositories
- fix: support user.name contain space
- fix: Group name can't be 'global'
- feat:
gum --version
cmd - fix: support node v9.0.0