Skip to content

Provides an easy way to configure git username on a per repository basis.

License

Notifications You must be signed in to change notification settings

kabbeck/git-persona

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <[email protected]>
work = Firstname Lastname <[email protected]>

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

About

Provides an easy way to configure git username on a per repository basis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%