______ _____ _______ _ _ _______ _______ ______
| ____ | | | | |______ |______ |_____/
|_____| __|__ | |_____| ______| |______ | \_
轻松切换和管理配置git用户信息。
npm install -g gituser
$ 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予以支持!