You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当工作项目 Git user 配置和个人项目的配置不同时,需要手动去 git config user.namegit config user.email 这些操作,相对比较繁琐,gum 这个工具就是 Git user config manager,方便 Git user 配置及管理。
Install
$ npm i -g @gauseen/gum
Example
$ gum list
Currently used name=gauseen email=gauseen@gmail.com
┌────────────┬─────────┬─────────────────────────┐
│ group-name │ name │ email │
├────────────┼─────────┼─────────────────────────┤
│ global │ gauseen │ gauseen@gmail.com │
│ user1 │ li si │ lisi@gmail.com │
│ user2 │ wang er │ wanger@gmail.com │
└────────────┴─────────┴─────────────────────────┘
$ gum use user1
Currently used name=li si email=lisi@gmail.com
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 helpforcommand
The text was updated successfully, but these errors were encountered:
背景
当工作项目 Git user 配置和个人项目的配置不同时,需要手动去
git config user.name
git config user.email
这些操作,相对比较繁琐,gum 这个工具就是 Git user config manager,方便 Git user 配置及管理。Install
Example
Usage
The text was updated successfully, but these errors were encountered: