Skip to main content

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.

Release files for ws.gitpersona 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ws.gitpersona 1.1.0
File Size Uploaded
ws.gitpersona-1.1.0.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ws.gitpersona 1.1.0
File Interpreter ABI Platform
ws.gitpersona-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / ws.gitpersona-1.1.0.tar.gz

Download URL ws.gitpersona-1.1.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dcd39cd3e17a27e7a2a07cc0908500187bfc23f1ebae416cd16cb7f9805241d1
BLAKE2b-256 checksum
How to use checksums
3cefc097a2bba984ddd87e691c525a6d2bdd685852e4de5759d764bed488d098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release files / ws.gitpersona-1.1.0-py3-none-any.whl

Download URL ws.gitpersona-1.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae2b97f296b1b612c81c1baaafc688559bd757280ec1e495eeeaaa752a143ea1
BLAKE2b-256 checksum
How to use checksums
b230826c9998f8abd0c9a1832ca8cbe2436d6ed02a55a0a9e8318c8d151038c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page