10

I have been creating a GitHub project. Now I'm planning on hosting it on Heroku. It looks like Heroku creates a new git repository and expects me to use it for my project. How can I point Heroku at my existing repository?

Kevin
  • 12,977
  • 20
  • 73
  • 117

1 Answers1

21

you still need your github repository.

git remote add heroku {heroku repository path} 

will add another remote repository to your code, then

git remote

will list all your remotes, probably

-- origin
-- heroku

and then

git push {remote name} {branch name}

will push to the appropriate remote:

git push heroku master

will start your deployment

git push origin

or probably just

git push

will push your changes just on github

matteofigus
  • 890
  • 9
  • 11