Provides an easy way to configure git username on a per repository basis.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/ws
.coveragerc
.gitignore
.travis.yml
CHANGES.txt
LICENSE
README.md
README.txt
pytest.ini
setup.py
tox.ini

README.md

git-persona

image

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:

[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