Skip to content

πŸ†” manage git user and email among repos easily

Notifications You must be signed in to change notification settings

huozhi/gitswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Git-Switch - git profile manager

Install

npm install -g gitswitch

Usage

gitswitch ls

$ gitswitch ls

github
 - name: huozhi
 - email: huozhi@company.com
work
 - name: mr
 - email: mr@workspace.com

gitswitch add [alias] [name] [email]

$ gitswitch add github huozhi huozhi@company.com

gitswitch use [alias]

$ cd ~/workspace/your-repo
$ gitswitch use github

$ cat .git/config

[user]
name = huozhi
email = huozhi@company.com

gitswitch override [old email] [new name] [new email]

override git commit history of [old email] with name [new name] and email [new email]

LICENSE

MIT

About

πŸ†” manage git user and email among repos easily

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published