Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/geongeorge/Git-User-Switch

Switch git user and email with ease
https://github.com/geongeorge/Git-User-Switch

Last synced: 7 days ago
JSON representation

Switch git user and email with ease

Awesome Lists containing this project

README

        

# Git User Switch

Switch git user, email and signingKey at ease.

### Install

```
npm i -g git-user-switch
```

### Usage

```
Usage: git-user [options]

Switch git users quickly. Switches locally by default

Options:
-V, --version output the version number
-g, --global Switch global git user
-d, --delete Delete a git user from the listing
-r, --reset Deletes all data and resets
-h, --help display help for command
```

### Troubleshoot

In case this messes up any of your git configs because of bad input.
Just edit:

*Global* : `~/.gitconfig`
*Local Project* : `project/.git/config`

```
[user]
email = [email protected]
name = Geon George
```

You can additionally reset the cli data store by running:

```sh
git-user -r
```