Easy way to set git environment variables 🤩
pnpm add -g set-git-userIt will auto declare the set-git-user command in your terminal.
set-git-user addYou 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-userYep, 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 currentset-git-user listset-git-user searchYou can search the env key to find the user information.
set-git-user deleteIt will delete the specific env in the local storage. *NOT* the git config.
set-git-user whereIt will delete all the envs in the local storage. *NOT* the git config.
set-git-user clear