Skip to main content

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 2.7 or 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:

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:

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


1.0.1 (2018-11-07)

  • Make current-setuptools compatible

1.0 (2015-01-11)

  • First release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ws.gitpersona, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size ws.gitpersona-1.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page