title: "src refspec does not match" and "failed to push some refs" errors on git push
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/959477/error-when-git-push-to-github">Error when &ldquo;git push&rdquo; to github</a>  </p>
  </blockquote>
  
  
  
  <p>I tried to push my new branch (let's just call it <code>new_branch</code>) to remote rep. There is no such branch there yet, but <code>git push origin new_branch:new_branch</code> should create it. When I try to do it, this is what I get:</p>
  
  <pre><code>error: src refspec new_branch does not match any.
  error: failed to push some refs to 'ssh://git@***'
  </code></pre>
  
  <p>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 <code>master</code> branch (I don't know if it makes any difference).</p>
  
  <p>What I already tried include <code>commit</code>, <code>reset</code> and <code>push</code> in many configurations. And they didn't work so far. I suppose there may be some issue with <code>HEAD</code>, 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 <em>teeny-tiny</em> mystery for me.</p>
  
  <p>So - how can I get rid of these errors and push my local branch to remote repository?</p>