Last Updated: February 25, 2016
·
1.238K
· owainlewis

Push to Heroku from a different machine

If you change machines often, you might need to add a Heroku remote so you can push to an existing app. The Heroku toolkit has a quick way to do this.

Before

git push heroku master
fatal: 'heroku' does not appear to be a git repository

Fix

heroku git:remote -a myproject

After

Now you can push to your application

git push heroku master