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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file git-identity-1.0.1.tar.gz.
File metadata
- Download URL: git-identity-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e11c3e7952a68ec92e1bf06ee06215fb770382aebdfdccee002679b900b721
|
|
| MD5 |
a6bf67b04cfba64b497388df816faed2
|
|
| BLAKE2b-256 |
00bfd70bde36e096b80d9b4421f5efccd78e87933fe8174d4519a513d828299f
|
File details
Details for the file git_identity-1.0.1-py3-none-any.whl.
File metadata
- Download URL: git_identity-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.7 CPython/3.9.6 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa7d977016ff9cf668b8a442fcf4a31c7b19eaa6db1b99e5de21690d359e11bb
|
|
| MD5 |
0c8ad0e68e31b9867354941a93b9760f
|
|
| BLAKE2b-256 |
95c764696e5ff18645eec448e4d54d095af90a9dbcd4f01ef50a50f098654cd5
|