Also, If you’ve never used heroku before on the other machine, you’ll need to do a few more things first:
$ gem install heroku
$ heroku login [then enter your credentials]
$ heroku keys:add [path to keyfile]
Now you can clone the remote repository:
$ git clone [email protected]:<heroku_app>.git <local_directory>