Easily switch git users.
To get the package, execute:
go get -u github.com/WindomZ/gituser
$ gituser -h
Usage:
gituser add <user> <name> <email> [--private-github]
gituser (remove|rm) <user>
gituser (list|ls)
gituser set <user> [--private-github]
gituser unset
gituser -h|--help
gituser -v|--version
Options:
--private-github
private email address for GitHub
-h --help output usage information
-v --version output the version number
Commands:
add add user configuration
remove|rm remove user configuration
list|ls list user configuration
set set local git user configuration from <user>
unset unset local git user configuration
Argument:
<user> the name of the configure user information
<name> the name of the git username
<email> the address of the git email
gituser add windomz WindomZ WindomZ@users.noreply.github.com # Save 'WindomZ' into configuration file
gituser add windomz WindomZ '' --private-github # Ibid, but email is GitHub privacy address
gituser rm windomz # Delete 'WindomZ' from configuration file
gituser list # List all saved users
gituser set windomz # Set local git user and email
gituser unset # Unset local git user and email
go-commander - The solution for building command shell programs
WindomZ/gituser.js - Written in Node.js
The MIT License