Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uetchy/git-account
git account manager.
https://github.com/uetchy/git-account
credentials git
Last synced: 20 days ago
JSON representation
git account manager.
- Host: GitHub
- URL: https://github.com/uetchy/git-account
- Owner: uetchy
- License: mit
- Created: 2014-11-21T08:54:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T07:13:47.000Z (over 3 years ago)
- Last Synced: 2024-10-07T16:42:16.684Z (about 1 month ago)
- Topics: credentials, git
- Language: TypeScript
- Homepage:
- Size: 424 KB
- Stars: 30
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# git-account
[![npm-version]][npm-url]
[![npm-downloads]][npm-url]
[![Build Status](https://travis-ci.com/uetchy/git-account.svg?branch=master)](https://travis-ci.org/uetchy/git-account)
[![Coverage Status](https://coveralls.io/repos/github/uetchy/git-account/badge.svg?branch=master)](https://coveralls.io/github/uetchy/git-account?branch=master)[npm-url]: https://npmjs.org/package/git-account
[npm-version]: https://badgen.net/npm/v/git-account
[npm-downloads]: https://badgen.net/npm/dt/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 []
```## Real world example
```console
$ 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
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
```console
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]
```