title: git push local branch with same name as remote tag
body: <p>I'm trying to push a new local branch <code>product-0.2</code> to remote where there is already a tag with the same name (but the branch itself does not exist)</p>
  
  <pre><code>git push -v --tags --set-upstream origin product-0.2:product-0.2 
  Pushing to https://****@github.com/mycompany/product.git
  error: src refspec product-0.2 matches more than one.
  error: failed to push some refs to 'https://****@github.com/mycompany/product.git'
  </code></pre>
  
  <p>Same with:</p>
  
  <pre><code>git push origin product-0.2:/refs/heads/product-0.2 
  </code></pre>
  
  <p>Although the other way around it works, e.g. create a branch <code>product-0.1</code>, commit on it then apply a tag <code>product-0.1</code>.</p>
  
  <p>Some people work around this by removing the conflicting tag locally, then push the branch, then retrieve the remote tag, but it seems cumbersome and error prone.</p>
  
  <p>How can I create my branch with minimal fuss?</p>
  
  <p>Thanks for your input</p>