Switch git user, email and signingKey at ease.
npm i -g git-user-switch
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
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:
git-user -r