1 个不稳定版本

0.2.0 2022年11月4日

#863 in 配置

GPL-2.0-or-later

13KB
237

Git多用户配置管理器

该项目是从 gum 初始化的

安装

下载二进制文件

发布页面 下载,并解压到PATH环境变量中的目录。

使用

列出所有用户配置组

$ gum list

Currently used name: admin, email: admin@email.com
╔═════════════════════════════════════╦═══════════╦═════════════════════════════╗
                Scope                ║    Name   ║            Email            ║
╠═════════════════════════════════════╬═══════════╬═════════════════════════════╣
 global                              ║ admin     ║ admin@email.com             ║
╠═════════════════════════════════════╬═══════════╬═════════════════════════════╣
 includeif "gitdir:~/code/personal/" ║ personal  ║ personal@email.com          ║
╠═════════════════════════════════════╬═══════════╬═════════════════════════════╣
 includeif "gitdir:~/code/company/"  ║ company   ║ company@email.com           ║
╚═════════════════════════════════════╩═══════════╩═════════════════════════════╝

更多信息

USAGE:
    gum <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    delete    Delete one group
    help      Print this message or the help of the given subcommand(s)
    list      List all the user config group
    set       Set one group for user config

依赖项

~5.5–7MB
~122K SLoC