add heroku remote to existing git code example
Example 1: how to add existing heroku remote
git remote add heroku [email protected]:project.git
Example 2: git remote add heroku
heroku git:remote -a project
Example 3: deploy to heroku
$ git add .
$ git commit -m "Added a Procfile."
$ heroku login
Enter your Heroku credentials.
...
$ heroku create <app-name>
Creating arcane-lowlands-8408... done, stack is cedar
// now create procfile
//
//node app.js
//
$ git push heroku master
-----> Node.js app detected
...
-----> Launching... done
http://arcane-lowlands-8408.herokuapp.com deployed to Heroku
Example 4: how to check is heroku git remote is added
git remote show heroku