1.0.1 • Published 1 year ago

gitaccountswitch v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

GAS - Git Account Switch

GAS 是一个命令行工具,用于快速切换不同的 Git 配置,例如在公司和个人项目之间切换。

安装

通过 npm 全局安装 GAS:

npm install -g gitaccountswitch

使用方法

添加 Git 账户

添加新的 Git 账户:

gas add <alias> <name> <email>
  • <alias>: 账户的别名。
  • <name>: Git 用户名。
  • <email>: Git 邮箱地址。

例如:

gas add personal JohnDoe john@example.com

切换 Git 账户

切换到之前添加的 Git 账户:

gas use <alias>

例如:

gas use personal

列出所有账户

列出所有添加的 Git 账户:

gas ls

显示当前 Git 账户

显示当前全局配置的 Git 账户:

gas current

许可

ISC

1.0.1

1 year ago

1.0.0

1 year ago