Skip to content

Latest commit

 

History

History
84 lines (57 loc) · 3.35 KB

README_Ch-zh.md

File metadata and controls

84 lines (57 loc) · 3.35 KB

  ______ _____ _______ _     _ _______ _______  ______
 |  ____   |      |    |     | |______ |______ |_____/
 |_____| __|__    |    |_____| ______| |______ |    \_
                                                      

Greenkeeper badge Build Status Coverage Status Dependency Standard - JavaScript Style Guide License

轻松切换和管理配置git用户信息。

NPM

gituser status

English

安装

npm install -g gituser

CLI用法

$ gituser -h

  Usage: gituser [options] [command]


  Commands:

    add|save [options] <name> [email]  save the configuration information
    remove|rm [name]                   delete the specified [name] configuration information
    list|ls                            list all user configuration information
    set|s [options] [name]             set local git config user from [name] configuration information
    unset                              unset local git user configuration
    show                               displays the local git user configuration

  Easily switch git users.

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --debug        debug mode, similar to sandbox mode
    --log          log method, print error tracks

更多帮助可以见范例

范例

gituser add WindomZ [email protected]  # 添加或覆盖'WindomZ'到清单
gituser save WindomZ --private-github                 # 同上,但是邮箱采用GitHub的私密邮箱地址
gituser rm WindomZ                                    # 从清单删除'WindomZ'
gituser rm                                            # 从清单删除选定的用户
gituser list                                          # 列出所有用户清单
gituser set WindomZ                                   # 从清单设置当前git用户和邮箱
gituser set                                           # 从清单选择并设置当前git用户和邮箱
gituser unset                                         # 清除当前git用户和邮箱
gituser show                                          # 打印展示当前git用户和邮箱

贡献

欢迎fork和PRs,或者在issues page提交BUG, 提出讨论对gituser.js的想法。

如果您喜欢这个项目,欢迎:star:Star予以支持!

许可

MIT