Project

gaman

0.01
No commit activity in last 3 years
No release in over 3 years
Switch git ssh connection
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
= 2.0
>= 0
 Project Readme

Gaman

Gem Version

When you work on two github account. You have to create two ssh-key and add them to your accounts (i.e: company account and personal account).

To switch between them, typicaly, you open terminal:

$ ll ~/.ssh/
$ eval "$(ssh-agent -s)"
$ ssh-add path/to/new/ssh
$ ssh -T git@github.com

It will annoys you alot.

Don't tired anymore. gaman is here to help you on that.

For Vietnamese developer: you can see more at my blog artical.

Required:

Recommended:

Installation

Install as you would any other ruby gem:

$ gem install gaman

Using

List all ssh keys

$ gaman list

Switch to a specific ssh key

$ gaman switch

And then follow the inline-instruction.

Or

$ gaman switch key_index

with key_index is a number shown in list method.

Create new ssh key

$ gaman new -e your_email@domain.com

Check current user that connect to github via ssh

$ gaman current_user

Check Gaman version

$ gaman -v (or `--version`)

Params: --server (or -s): github/bitbucket

If there is no param passed, github will be used as default

Contributors

@CQBinh from AsianTech with love.

Contributing

  1. Fork https://github.com/CQBinh/gaman
  2. Create your feature branch (git checkout -b my-awesome-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new pull request with a description of your changes

License

The gem is available as open source under the terms of the MIT License.

Thank give

Special thank to @vinhnglx and @Nguyenanh for helping me on this project.