I found this page useful.
Install Heroku Toolbelt
If you have not already done so, log in to your Heroku account and follow the instructions to create a new SSH public key.
$ heroku login
Create a New Git Repository
Initialize a Git repository in a new or existing directory
$ cd my-project/ $ git init $ heroku git:remote -a PROJECTNAME
Expand Application
Commit your code to the repository and deploy it to Heroku using Git.
$ git add . $ git commit -am "make it better" $ git push heroku master
Existing Git Repository
For existing repositories just add a remote heroku server
$ heroku git:remote -a PROJECTNAME
Karim Samir Aug 12 '16 at 11:31 on 2016-08-12 11:31
source share