Search code examples
githeroku

Heroku set git remote heroku but when adding I get error remote heroku already exists


Until now I was using connect to github with heroku but as I understand it is currently disabled. So it's my first time doing it through Heroku CLI.

I am following the tutorial on heroku. First I log in using heroku login. Then I would like to link my existing repo on github with heroku git:remote -a my-app-name but I get a error message saying set git remote heroku to ..., when I try to set it with git remote add heroku ... I get another error error: remote heroku already exists..

I have never used this before and I can't understand what should I do. How can I deploy my project from github to heroku?


Solution

  • I was able to deploy the project with just git push heroku master