I want make push and get error: src refspec master does not match any

Mark picture Mark · Oct 27, 2014 · Viewed 79.5k times · Source

I'm hosting on Heroku. I want to make a push:

git push master Heroku

I gets the message:

error: src refspec master does not match any.
error: failed to push some refs to '[email protected]: etc ...'

Answer

vineet picture vineet · Mar 9, 2016

This is work for me:-

git push heroku HEAD:master