change-git-user-1.1.0 is not a library.
cgu
Manage multiple git configurations
Inspired by Git-User-Switch.
Installation
# this will install the executable `cgu`
Features
- Switch
user.name
anduser.email
config - Assign an optional
user.signingKey
to the config - Give the config a name to remember it by (e.g. "Work" or "Personal")
- Uses
git2
to discover a repository and manipulate its config
Usage
Prompts
# This will spawn prompts to guide you through managing user configurations
CLI
If you don't want use use prompts, you can use subcommands instead. The subcommands are:
add
select
delete
view
Examples
# view CLI options
# view subcommand help
# Add a config with the name "My Config"
# Defaults to the user.name value ("My Name" in this example) if --name is not passed
# View all configs
# Select the new config
# Delete the new config