Easy way to set git environment variables 🤩
pnpm add -g set-git-user
It will auto declare the set-git-user
command in your terminal.
set-git-user add
You will be prompted to enter the env key and the git user information. The key will be used to identify the user information.
If you have already set the env key, you can choose to overwrite the user information or exit it.
💡Tips: You need to execute the command in a git repository.
set-git-user
Yep, it's that simple. You can search the env key to set the git user.
Checkout your local config file to see the user information.
set-git-user current
set-git-user list
set-git-user search
You can search the env key to find the user information.
set-git-user delete
It will delete the specific env in the local storage. *NOT* the git config.
set-git-user where
It will delete all the envs in the local storage. *NOT* the git config.
set-git-user clear