Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

🆔 manage git user and email among repos easily

Awesome Lists containing this project

README

        

Git-Switch - git profile manager
===

## Install

```
npm install -g gitswitch
```

## Usage

> gitswitch ls

```
$ gitswitch ls

github
- 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