@ddmoyu/gus
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

gus

GitHub top language npm

git user switch, support local and global.(切换 git 用户,支持本地和全局)

Usage \ 使用

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

USAGE
 $ gus rm

DESCRIPTION
 remove user.

EXAMPLES
 $ gus rm 0
 // or
 $ gus rm moyu

 // remove moyu successfull!

gus use

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!

Alt

Readme

Keywords

Package Sidebar

Install

npm i @ddmoyu/gus

Weekly Downloads

0

Version

0.1.9

License

MIT

Unpacked Size

21.2 kB

Total Files

27

Last publish

Collaborators

  • ddmoyu