gitusr is a shell script that allows you to easily manage using multiple git hub accounts.
The script adds a shell command gitusr
.
This shell command allows you to change or check the current git hub account with a simple flag.
For example, to change to your work email you might type gitusr -w
.
(Full feature list below)
Run the setup.py script and answer the questions. When in the directory containing setup.py, you can run the python script using:
./setup.py
The script will ask you for an email and then a flag to use with that email.
It will continue doing this until you type done
for an email.
Then it will output the shell script to /usr/local/bin/gitusr
.
This will allow you to use the gitusr
command in your shell.
Run the setup.py script again. This will ask you the same questions and overwrite the existing shell script.
Delete the shell script file. This can be done with the command:
rm /usr/local/bin/gitusr
-
Check git email of current repository
gitusr
or check global git email
gitusr -g
-
Change the current git email (Assuming you have an email set to use the -w flag)
gitusr -w
or change the global git email
gitusr -g -w
-
Display a help message (including set email flags)
gitusr -h
- Allow Setup.py to take command line arguments
The setup script is written in python 3 so you will need python 3.