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 'git@heroku.com: etc ...'
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 'git@heroku.com: etc ...'
This is work for me:-
I have expericed the problem you have. I solved this problem like this
push
I don't know why.
I got this error when trying to push to Heroku when I wasn't on my local master branch.
I resolved it with
git push heroku my_branch_name:master
and replacing
my_branch_name
with the name of the git branch I was on. I think this tells Heroku to receive this local branch on Heroku's master branch.This worked for me.
git config --global user.email "you@example.com"
git config --global user.name "Your Name"