Created
March 2, 2013 07:52
-
-
Save vishwassharma/5070100 to your computer and use it in GitHub Desktop.
Git Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Create new SSH key | |
| ssh-keygen -t rsa -C "[email protected]" | |
| <set the appropriate path for the keys> | |
| Use a path like /home/cr01nk/.ssh/identity.heroku.work | |
| 2. Once the keys are generated the add the heroku multiple account plugin | |
| heroku plugins:install git://github.com/ddollar/heroku-accounts.git | |
| 3. Add the following in you ~/.ssh/config | |
| Host heroku.personal | |
| HostName heroku.com | |
| IdentityFile /PATH/TO/PRIVATE/KEY | |
| IdentitiesOnly yes | |
| In our case it is | |
| Host heroku.personal | |
| HostName heroku.com | |
| IdentityFile /home/cr01nk/.ssh/identity.heroku.vishwassharma | |
| IdentitiesOnly yes | |
| 4. Set the current account to work on | |
| heroku accounts:set personal | |
| 5. Access the git repo using | |
| git clone [email protected]:repository.git |
Author
Author
- Create new SSH key
ssh-keygen -t rsa -C "[email protected]"
Use a path like /home/cr01nk/.ssh/identity.heroku.work - Once the keys are generated the add the heroku multiple account plugin
heroku plugins:install git://github.com/ddollar/heroku-accounts.git - Add the following in you ~/.ssh/config
Host heroku.personal
HostName heroku.com
IdentityFile /PATH/TO/PRIVATE/KEY
IdentitiesOnly yes
In our case it is
Host heroku.personal
HostName heroku.com
IdentityFile /home/cr01nk/.ssh/identity.heroku.vishwassharma
IdentitiesOnly yes
- Set the current account to work on
heroku accounts:set personal --auto - Access the git repo using
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
have to add how to manage multiple github account