git-usr

You can easily set git repository user config(user.name and user.email)


Keywords
git user, git config, git email, git
License
MIT
Install
npm install git-usr@1.0.0

Documentation

git-usr

You can easily set git repository user config(user.name and user.email)

Install

npm i -g git-usr

Usage

gusr [command]

Commands:

config <user.name> <user.email>    add or update (<user.name>=<user.email>) config
remove <user.name>                 remove (<user.name>) config
example                            user@example.com
help [cmd]                         display help for [cmd]

The command is one of the <user.name> you added by config command.

Exec gusr example and your git repository [user] config will be:

[user]
        name = example
        email = user@example.com

Add or update config

Just:

gusr config userName user@email.com

Then

gusr userName

Remove config

gusr remove userName