I git cloned a Node.js application (the version specified in the package.json
being 4.1.2
and that of my local machine being 6.2.2
) an
I run into the same issue and tried everything, eventually realized no file would commit because they were already committed and pushed to the github repository. So you need to do the following:
rm -rf .git
git init
git add .
git commit -m “commit name”
heroku create
git push heroku master
This worked for me.