Skip to content


Subversion checkout URL

You can clone with
Download ZIP
User management and pairing for Git
Branch: master
Failed to load latest commit information.
bin Added license headers
features Fixed error message
lib Preparing for next development iteration
spec Refactored test
.gitignore Ignored DS_Store file
.licenseignore Added license headers
.simplecov Added license headers
.travis.yml Added `--version` flag
Gemfile Added license headers
LICENSE.txt Made it a Gem Updated badge again
Rakefile Fixed verify task
TODO Add users to config when you switch to them
gitsu.gemspec Fix build on 1.8.7


Build Status Coverage Status Code Climate

Gem Version Dependency Status

Gitsu helps to manage your Git users, by making it easy to switch between users. Gitsu also supports pair programming by allowing you switch to multiple users at once!


$ gem install gitsu


Gitsu is intended to be used from the command line, through Git.

To switch the configured Git user:

$ git su "John Galt <>"

Switched local user to John Galt <>

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

$ git su --add "John Galt <>"
$ git su --add "Raphe Rackstraw <>"
$ git su jg

Switched local user to John Galt <>

$ git su raphe

Switched local user to Raphe Rackstraw <>

To pair with your friend switch to both users at once

$ git su jg rr

Switched local user to John Galt and Raphe Rackstraw <>


For more information, see the documentation


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes, and add tests for them
  4. Test your changes (rake)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request


Gitsu Copyright (C) 2013 drrb

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Something went wrong with that request. Please try again.