English | 中文
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/YOUNGmaxer/git-user/main/install.sh | bash
- For the current directory:
gu set
- Globally:
gu set --global
gu show
- To add:
gu add
and follow the prompts. - To delete:
gu delete
and select the profile to be deleted.
- To switch:
gu switch
and select a profile. - To list:
gu list