Skip to content

yixiaojiu/git-user-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git User Manager

reference lexmin0412/gcm.git

When you develop for your company and your own projects, you need to switch user.name and user.email frequently.

This CLI tool is capable of managing the Git user configuration for multiple users efficiently, which will help a lot.

Install

cargo install --git https://github.com/yixiaojiu/git-user-manager

Usage

Usage: gum <COMMAND>

Commands:
  add     add user config
  remove  use alias to remove a user config
  list    list all user config
  use     use alias to change git user config
  include  conditional include, reference https://git-scm.com/docs/git-config#_conditional_includes
  info     View git username and email configuration
  help    Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

For example:

# add a user
# alias: github
# name: bar
# email: foo@example.com
gum add github bar foo@example.com

# use github alias to change git user config
gum use github

About

CLI tool for managing git config multiple users

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages