Search code examples
githerokuheroku-cli

Trying to push a new projekt to Heroku, but it pushes an old project instead


I'm currently working with Git and Heroku.

I committed changes to a project that I would like to upload to Heroku. I've been having some trouble beforehand so I had 5 projects earlier that I had to delete. Now when I use "heroku create", it creates a new project, but then why I use "git push heroku master", it tries to push an old project, which obviously fails because the project was deleted. Any tips on this? screenshot of my cmd


Solution

  • Maybe you forgot to change Heroku's remote URL. Check this article.