Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huozhi/gitswitch
🆔 manage git user and email among repos easily
https://github.com/huozhi/gitswitch
git git-profiles git-switch
Last synced: 15 days ago
JSON representation
🆔 manage git user and email among repos easily
- Host: GitHub
- URL: https://github.com/huozhi/gitswitch
- Owner: huozhi
- Created: 2016-11-06T13:33:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T16:47:24.000Z (over 3 years ago)
- Last Synced: 2024-10-04T18:17:02.495Z (about 1 month ago)
- Topics: git, git-profiles, git-switch
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Git-Switch - git profile manager
===## Install
```
npm install -g gitswitch
```## Usage
> gitswitch ls
```
$ gitswitch lsgithub
- name: huozhi
- email: [email protected]
work
- name: mr
- email: [email protected]
```> gitswitch add [alias] [name] [email]
```
$ gitswitch add github huozhi [email protected]
```> gitswitch use [alias]
```
$ cd ~/workspace/your-repo
$ gitswitch use github$ cat .git/config
[user]
name = huozhi
email = [email protected]
```> 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