You will need to add two remotes to the same project.
Initiate your project for Git
$ git init
To add remote Github to the project and click:
$ git remote add origin https://github.com/user/repo.git # Set a new remote $ git remote -v # Verify new remote # origin https://github.com/user/repo.git (fetch) # origin https://github.com/user/repo.git (push) $ git add . $ git commit -m "initial commit" $ git push origin master
To create a new Heroku project and push the remote into your project:
$ heroku create $ git remote -v
This is the standard strategy that you will each time want to git add, commit, and then click on origin master (Github) and heroku master (Heroku).
Greg source share