gituser

command module
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2017 License: MIT Imports: 2 Imported by: 0

README

gituser

Build Status License Go Report Card

Easily switch git users.

v1.2.2 status

Installation

To get the package, execute:

go get -u github.com/WindomZ/gituser

Usage

$ 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

Example

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

PowerBy

go-commander - The solution for building command shell programs

WindomZ/gituser.js - Written in Node.js

License

The MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL