Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push heroku master does nothing

Tags:

node.js

heroku

I am on windows 7.

I followed the documentation on heroku there: https://devcenter.heroku.com/articles/nodejs

when I execute

git push heroku master

it does absolutely nothing and I get no error. I tried to re-generate my ssh key, to delete everything and do it again. Always the same.

Sorry for providing so few info but as I have no error message, it is really difficult for me to figure out...

like image 372
dervlap Avatar asked Nov 19 '12 15:11

dervlap


People also ask

How does git push Heroku master work?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

Does Heroku use master or main?

This change is backwards-compatible; user workflows that depend on master are not affected. We encourage customers to switch to the main branch. Expect gradual updates to documentation and examples reflecting the ability to use main in place of master .

Can I git pull from Heroku?

Also note that Heroku should not be considered a git hosting. It means that it's extremely uncommon to perform a git pull from Heroku. Instead, you should use a git hosting (such as GitHub or BitBucket) to store your repository and only perform push to Heroku to deploy the application.


2 Answers

If anyone else has this problem, my issue was that I was not pushing from my local master branch to heroku/master. You have to either push from your local master branch to heroku/master or run the command

git push heroku yourbranch:master

This is from the heroku documentation here

like image 123
taylorstine Avatar answered Oct 02 '22 10:10

taylorstine


Ok. SSH Key problem. So if you have no error message on window, try to re-created manually your ssh key following this instruction and it will work. Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

like image 24
dervlap Avatar answered Oct 02 '22 09:10

dervlap