1

I have a situation in where I have two remotes. Confirmed by running git remote -v

Now, I already did git push But now, I want to push to heroku as well. So I used git push heroku master. However, it shows already-up-to-date.

Please note that I already deployed once to heroku prior to this git push heroku. How can I push/deploy my changes ?

HalfWebDev
  • 7,022
  • 12
  • 65
  • 103
  • How did you deploy to heroku? It is important because heroku needs code to be pushed in order to deploy your code. That might explain the reason of what you experienced. – lemiorhan Nov 07 '16 at 09:23
  • I used windows CLI to push and then ran some commands present here https://devcenter.heroku.com/articles/heroku-command-line Then I deployed with reference from https://devcenter.heroku.com/articles/getting-started-with-nodejs#deploy-the-app – HalfWebDev Nov 07 '16 at 11:59
  • It seems that you already pushed to heroku to deploy your code. Therefore `git push heroku master` command did not find any updates since it was already gone to heroku. – lemiorhan Nov 07 '16 at 14:06

1 Answers1

0

Check your git branch -avv output.

It is possible that the master branch could be linked (through its push url) to the heroku remote.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250