gu is a command-line tool for managing multiple Git user profiles on a single machine, facilitating the switching of user information between personal and work projects.
Run the following commands to install gu:
curl -sSL https://raw.githubusercontent.com/hnrobert/gu/main/install.sh | bash- For the current directory:
gu set - Globally:
gu set --global
gu show- To add:
gu addand follow the prompts. - To delete:
gu deleteand select the profile to be deleted.
- To switch:
gu switchand select a profile. - To list:
gu list
- Forked from: YOUNGmaxer/git-user
- hnrobert
gu 是一个命令行工具,用于在单个机器上管理多个 Git 用户配置文件,便于在个人和工作项目之间切换用户信息。
运行以下命令安装 gu:
curl -sSL https://raw.githubusercontent.com/hnrobert/gu/main/install.sh | bash- 当前目录:
gu set - 全局:
gu set --global
gu show- 添加:
gu add并按提示操作。 - 删除:
gu delete并选择要删除的配置文件。
- 切换:
gu switch并选择配置文件。 - 列出:
gu list
- Fork 自: YOUNGmaxer/git-user
- hnrobert