Possible Duplicate:
Error when “git push” to github
I tried to push my new branch (let's just call it new_branch
) to remote rep. There is no such branch there yet, but git push origin new_branch:new_branch
should create it. When I try to do it, this is what I get:
error: src refspec new_branch does not match any.
error: failed to push some refs to 'ssh://git@***'
I dug through million of questions like this on SO, but none of them specified these two errors at once and they referred only to master
branch (I don't know if it makes any difference).
What I already tried include commit
, reset
and push
in many configurations. And they didn't work so far. I suppose there may be some issue with HEAD
, because I messed with it some time ago. But it's a guess and I don't even know how to check it properly, since GIT is still a teeny-tiny mystery for me.
So - how can I get rid of these errors and push my local branch to remote repository?