Skip to content
Manage your git author accounts
Ruby
Pull request Compare This branch is 8 commits ahead, 59 commits behind walle:development.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
fixtures/vcr_cassettes
lib
spec
.gitignore
.travis.yml
Gemfile
Guardfile
LICENSE
README.textile
Rakefile
gas.gemspec

README.textile

Notice: This gem has fallen behind walle/gas and is not compatible with it

This fork of walle/gas (used for ssh key juggling) is slowly being migrated into an extension style plugin to the gas gem (for changing authors only, has nothing to do with pushing keys online or anything).

gas – manage your git author accounts

Description

Gas is a mighty utility that helps you keep track of your multiple git authors. Add them to gas and switch between them instantly! Great if you use one author at work and one at home or if you are doing pair programming.

Installation

$  git clone git@github.com:TheNotary/gas.git
$  cd gas
$  git checkout last_stable_ssh_gas
$  bundle
$  bundle exec rake install

Alternatively you can try:

 $ gem install gas2

You can install from source:

$ cd gas/
$ bundle
$ rake install

Running

The default task is to list authors

$ gas
$ gas list

This lists the authors that are set up in the ~/.gas/gas.authors file.

You can import your current user by giving it a nickname

$ gas import current_user

To add an author use, add

$ gas add walle "Fredrik Wallgren" fredrik.wallgren@gmail.com

And the main usage, use

$ gas use walle

To delete it again use, delete

$ gas delete walle

Gas can also juggle your id_rsa ssh keys, which is helpful for uploading to github between multiple accounts. Indespensible for teachers who need to instruct their students on how to use github!

$ gas add Njax NotarySojac no@mail.com
Do you want gas to handle switching rsa keys for this user?
[y/n]

View gas -h to see all options.

Something went wrong with that request. Please try again.