# git-user-switch-new

> Switch git user quickly

Latest version **0.6.2** (published 2023-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-user-switch-new
pnpm add git-user-switch-new
yarn add git-user-switch-new
bun add git-user-switch-new
```

Provides the command `git-user`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.2 |
| Published | 2023-03-08 |
| First published | 2023-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 644 |
| Author | Geon George |
| Maintainers | 0xethcoder |
| Keywords | git, git-user, user |

## Links

- npm: https://www.npmjs.com/package/git-user-switch-new
- Repository: https://github.com/geongeorge/Git-User-Switch
- Homepage: https://github.com/geongeorge/Git-User-Switch#readme
- Issues: https://github.com/geongeorge/Git-User-Switch/issues
- npm.io page: https://npm.io/package/git-user-switch-new

## Dependencies (5)

- [conf](https://npm.io/package/conf.md) ^7.1.2
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [execa](https://npm.io/package/execa.md) ^4.1.0
- [inquirer](https://npm.io/package/inquirer.md) ^7.3.3
- [commander](https://npm.io/package/commander.md) ^5.0.0

## Recent versions

- 0.6.2 (latest) — 2023-03-08

## README

# Git User Switch

Manage/Switch/Scan git user, email and signingKey at ease.

<img src="https://thumbs.gfycat.com/OfficialLiveImago-size_restricted.gif">

### 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
  -i, --info     Show current git user
  -s, --switch   Switch git user
  -c, --create   Create a new git user
  -S, --scan     Scan all git repo in current directory, and show the git user of each repo
```

### 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 = geongeorgexyz@gmail.com
	name = Geon George
```

You can additionally reset the cli data store by running:

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

---
_Source: https://npm.io/package/git-user-switch-new · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
