Gitsu

User management and pairing for Git

View the Project on GitHub drrb/gitsu

Installation

Gitsu can be installed as a Ruby Gem

$ gem install gitsu

Getting Started

Gitsu is intended to be used from the command line, through Git. Note that all command line switches also have short versions.

Without any configuration, you can use it to switch the configured Git user:

$ git su "John Galt <jgalt@example.com>"
Switched local user to John Galt <jgalt@example.com>

To make it easier to switch users, tell Gitsu about some users.

$ git su --add "John Galt <jgalt@example.com>"
User 'John Galt <jgalt@example.com>' added to users
$ git su --add "Raphe Rackstraw <rack@example.com>"
User 'Raphe Rackstraw <rack@example.com>' added to users

$ git su jg
Switched to user John Galt <jgalt@example.com>
$ git su raphe
Switched to user Raphe Rackstraw <rack@example.com>

You can also switch to multiple users, for pairing:

$ git su jg rr
Switched to user 'John Galt and Raphe Rackstraw <dev+jgalt+rack@example.com>'

Now check out the usage examples.