Skip to content

Instantly share code, notes, and snippets.

@vishwassharma
Created March 2, 2013 07:52
Show Gist options
  • Select an option

  • Save vishwassharma/5070100 to your computer and use it in GitHub Desktop.

Select an option

Save vishwassharma/5070100 to your computer and use it in GitHub Desktop.
Git Setup
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
@vishwassharma
Copy link
Author

  1. Create new SSH key
    ssh-keygen -t rsa -C "[email protected]"

    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

  1. Set the current account to work on
    heroku accounts:set personal --auto
  2. Access the git repo using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment