Quickly set user.name and user.email for a repository, based on a config file
Project description
git-identity
Quickly set user.name and user.email for a repository, based on a config file. Available on pypi.
Installation
Recommended installation is with pipx
:
pipx install git-identity
Autocompletion
Autocompletion is done with argcomplete
.
Install, and add the following to your shell's startup scripts:
eval "$(register-python-argcomplete git-identity)"
Configuration
This project will look for git-identity.json
in the XDG config folder (typically $HOME/.config/
).
{
"identities" : {
"<alias>": {
"name": "Alex Ample",
"email": "alexample@example.com"
}
}
}
alias
is what is used when invoking the command.
Usage
After installation, you may use this as a git subcommand (though argcomplete only works when you invoke it as git-identity
)
git identity <alias>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-identity-1.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for git_identity-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa7d977016ff9cf668b8a442fcf4a31c7b19eaa6db1b99e5de21690d359e11bb |
|
MD5 | 0c8ad0e68e31b9867354941a93b9760f |
|
BLAKE2b-256 | 95c764696e5ff18645eec448e4d54d095af90a9dbcd4f01ef50a50f098654cd5 |