Package: gitu
gituAccount manager for git users with multiple accounts.InstallInstall gitu from PyPi:pip install gituUsageusage: gitu [-h] {login,l,add,a,view,v,edit,e,remove,r} ...

positional arguments:
  {login,l,add,a,view,v,edit,e,remove,r}
    login (l)           switch users
    add (a)             add a new user
    view (v)            view information of users
    edit (e)            edit the information of a user
    remove (r)          remove a user

optional arguments:
  -h, --help            show this help message and exitAdd a userUsageusage: gitu add [-h] [-r] [-a ALIAS] [-g] name email

positional arguments:
  name                  name of the user
  email                 email of the user

optional arguments:
  -h, --help            show this help message and exit
  -r, --replace         replace the user if the name or alias already exists
  -a ALIAS, --alias ALIAS
                        add a alias to the user
  -g, --gpgsign         set commit.gpgsign to trueExample# Add a new user MisakagituaddMisakamisaka@example.com# Add a new user Shirai with alias Kurokogitua-aKurokoShiraishirai@example.comSwitch usersUsageusage: gitu login [-h] [--local] [-g] [-s] [-w] name

positional arguments:
  name            name or alias of the user

optional arguments:
  -h, --help      show this help message and exit
  --local         write to or read from the repository .git/config file
                  (default)
  -g, --global    write to or read from global ~/.gitconfig file
  -s, --system    write to or read from system-wide $(prefix)/etc/gitconfig
  -w, --worktree  write to or read from .git/config.worktree if
                  extensions.worktreeConfig is presentExample# Login as MisakagituloginMisaka# Login as Shirai Kuroko globallygitul-gKurokoView usersUsageusage: gitu view [-h] [--local] [-g] [-s] [-w] [-l] [-a]

optional arguments:
  -h, --help      show this help message and exit
  --local         write to or read from the repository .git/config file
                  (default)
  -g, --global    write to or read from global ~/.gitconfig file
  -s, --system    write to or read from system-wide $(prefix)/etc/gitconfig
  -w, --worktree  write to or read from .git/config.worktree if
                  extensions.worktreeConfig is present
  -l, --list      list all users
  -a, --all       show all information of usersExample# View local usergituview# View global usergituv-g# List all usersgituv-l# List all users in detailsgituv-laEdit a userUsageusage: gitu edit [-h] [-n NEW_NAME] [-e EMAIL] [-a ALIAS]
                     [--remove-alias ALIAS] [-g] [-r]
                     name

positional arguments:
  name                  name or alias of the user

optional arguments:
  -h, --help            show this help message and exit
  -n NEW_NAME, --name NEW_NAME
                        new name of the user
  -e EMAIL, --email EMAIL
                        new email of the user
  -a ALIAS, --alias ALIAS
                        add a new alias to the user
  --remove-alias ALIAS  remove the alias of the user
  -g, --gpgsign         set commit.gpgsign to true
  -r, --replace         replace the user if the name or alias already existsExample# Rename Misaka to MikotogitueditMisaka-nMikoto# Change EmailgitueShirai-eshirai@gakuen-toshi.tech# Add aliasgitue-aOnee-samaMikoto# Remove aliasgitue--remove-aliasOnee-samaMikotoRemove a userUsageusage: gitu remove [-h] name

positional arguments:
  name        name or alias of the user

optional arguments:
  -h, --help  show this help message and exitExample# Remove a usergituremoveKamijouExit statusThe status is one of the follows:0 (SUCCESS): the operation succeeded.1 (USER_NOT_FOUND): the user does not exist.2 (USER_EXISTS): the user already exists. To replace the user, use-r/--replace.3 (GIT_ERROR): failed to execute a git command.