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 [email protected]
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.
ruby1.9 or greater (see https://www.ruby-lang.org/en/installation )
rubygems(included with ruby; see https://github.com/rubygems/rubygems )
rvmfor controlling your versions of ruby (see: https://github.com/rvm/rvm )
Install as you would any other ruby gem:
$ gem install gaman
List all ssh keys
$ gaman list
Switch to a specific ssh key
$ gaman switch
And then follow the inline-instruction.
$ gaman switch key_index
with key_index is a
number shown in
Create new ssh key
$ gaman new -e [email protected]
Check current user that connect to github via ssh
$ gaman current_user
Check Gaman version
$ gaman -v (or `--version`)
If there is no param passed, github will be used as default
- Fork https://github.com/CQBinh/gaman
- Create your feature branch (
git checkout -b my-awesome-feature)
- Commit your changes (
git commit -m 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new pull request with a description of your changes
The gem is available as open source under the terms of the MIT License.