Quickly set user.name and user.email for a repository, based on a config file
Project description
git-identity
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.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for git_identity-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6c59842c66ee53dc65131334ab987a6fc09b0b9cbf22fb2c9aed5f360b594b |
|
MD5 | 367936218f787f40f73a7c43be7ba1bc |
|
BLAKE2b-256 | 263c0c2c76b3958f01c1002e41506ef4c50700db5fc7452e73a33e5babf08ac1 |