https://github.com/ddmoyu/gus
git user switch command-line app
https://github.com/ddmoyu/gus
cli command-line commandline-tool github user
Last synced: 24 days ago
JSON representation
git user switch command-line app
- Host: GitHub
- URL: https://github.com/ddmoyu/gus
- Owner: ddmoyu
- License: mit
- Created: 2022-01-14T05:49:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-01T01:04:00.000Z (about 3 years ago)
- Last Synced: 2025-09-30T15:19:03.871Z (7 months ago)
- Topics: cli, command-line, commandline-tool, github, user
- Language: TypeScript
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gus
 
git user switch, support local and global.(切换 git 用户,支持本地和全局)

## Usage \ 使用
```bash
npm i -g @ddmoyu/gus
gus COMMAND
```
## Commands \ 命令
* `gus ls`
* `gus add`
* `gus rm`
* `gus use`
## `gus ls`
```
USAGE
$ gus ls
DESCRIPTION
list all users.
EXAMPLES
$ gus ls
╔═════════════════════════════════════════════╗
║ Git users list ║
╟────┬────────┬──────────────────────┬────────╢
║ ID │ Name │ Email │ Status ║
╟────┼────────┼──────────────────────┼────────╢
║ 0 │ test1 │ test1@gmail.com │ Local ║
╟────┼────────┼──────────────────────┼────────╢
║ 1 │ ddmoyu │ daydaymoyu@gmail.com │ Global ║
╟────┼────────┼──────────────────────┼────────╢
║ 2 │ test2 │ test2@gmail.com │ ║
╚════╧════════╧══════════════════════╧════════╝
```
## `gus add`
```
USAGE
$ gus add
DESCRIPTION
Add user.
EXAMPLES
$ gus add moyu daydaymoyu@gmail.com
// Add moyu successfull!
```
## `gus rm`
```bash
USAGE
$ gus rm
DESCRIPTION
remove user.
EXAMPLES
$ gus rm 0
// or
$ gus rm moyu
// remove moyu successfull!
```
## `gus use`
```txt
USAGE
$ gus use
DESCRIPTION
use this user.
FLAGS
-l set the user as local user.(Default) \ 设置该用户为当前仓库用户。
-g set the user as global user. \ 设置该用户为全局仓库用户。
EXAMPLES
$ gus use 0 -l
// or
$ gus use moyu -g
// use moyu successfull!
```
