git-account

git account manager.

MIT License

Downloads
43
Stars
30

git-account

git-account adds user management feature to git. It makes you able to change user.name, user.email and private key at ease.

Installation

npm i -g git-account

Usage

$ git account <command> [<args>]

Real world example

$ git account add
? ID uetchy
? Name Yasuaki Uechi
? Email [email protected]
? Private Key /Users/uetchy/.ssh/id_rsa
User created
KEY        VALUE
id         uetchy
name       Yasuaki Uechi
email      [email protected]
privateKey /Users/uetchy/.ssh/id_rsa

$ git account switch
? choose one Yasuaki Uechi <[email protected]>
Switched

$ git account status
KEY        VALUE
name       Yasuaki Uechi
email      [email protected]
privateKey /Users/uetchy/.ssh/id_rsa

All config will be saved to ~/.git-account

Commands

status         Show current status
list           List users
switch [name]  Switch user
exec           Run command
add            Add user
remove         Remove user
help [cmd]     display help for [cmd]