Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/geongeorge/Git-User-Switch
- Owner: geongeorge
- License: mit
- Created: 2020-11-12T09:48:25.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T10:43:55.000Z (over 1 year ago)
- Last Synced: 2024-10-14T08:29:54.519Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 110 KB
- Stars: 634
- Watchers: 7
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```