Provides an easy way to configure git username on a per repository basis
Project description
git-persona provides an easy way to configure the git username on a per repository basis. It is inspired by the mercurial extension hg-persona.
git-persona requires at least Python 3.3. You can install it from PyPI like this:
$ pip install ws.gitpersona
You can configure invidual personas in your ~/.gitconfig as follows:
[persona] home = Firstname Lastname <firstname@home.domain> work = Firstname Lastname <firstname.lastname@work.domain>
and you’ll probably want to set up an alias like this:
[alias] persona = !git-persona
Then you can switch the persona of a repository:
$ git persona -n home $ git persona -n work
And list all known personas:
$ git persona
CHANGES
1.1.0 (2023-04-04)
Changes
Drop Python-2 support (py2)
Switch from setup.py to pyproject.toml (wheel)
1.0.1 (2018-11-07)
Make current-setuptools compatible
1.0 (2015-01-11)
First release.
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
File details
Details for the file ws.gitpersona-1.1.0.tar.gz
.
File metadata
- Download URL: ws.gitpersona-1.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd39cd3e17a27e7a2a07cc0908500187bfc23f1ebae416cd16cb7f9805241d1 |
|
MD5 | d8b1b637ce2d823acacff33dcd1da8c4 |
|
BLAKE2b-256 | 3cefc097a2bba984ddd87e691c525a6d2bdd685852e4de5759d764bed488d098 |
File details
Details for the file ws.gitpersona-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: ws.gitpersona-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2b97f296b1b612c81c1baaafc688559bd757280ec1e495eeeaaa752a143ea1 |
|
MD5 | 7e916d7be2d43717e111d80db3bd309b |
|
BLAKE2b-256 | b230826c9998f8abd0c9a1832ca8cbe2436d6ed02a55a0a9e8318c8d151038c6 |