title: How do I squelch "fatal: The upstream branch of your current branch does not match the name of your current branch"?
body: <p>There is a related question on SO dealing with how to change the parameters of the <code>push</code> command to avoid this message:</p>
  
  <p><a href="https://stackoverflow.com/questions/24864700/fatal-the-upstream-branch-of-your-current-branch-does-not-match-the-name-of-you">fatal: The upstream branch of your current branch does not match the name of your current branch</a></p>
  
  <p>I'm interested in how to squelch the message itself, <em>without</em> changing the names of my local/remote branches or using fancy <code>push</code> commands.</p>
  
  <p>Suppose I have a local branch tracking a remote branch of a different name:</p>
  
  <pre><code>user@home:~ git branch -vv
  branch-name abcd1234 [remote/origin/branch-name] last commit message
  </code></pre>
  
  <p>Now I want to be able to push my commited changes by simply typing <code>git push</code>. When I do this, I get the following message:</p>
  
  <blockquote>
  <pre><code>fatal: The upstream branch of your current branch does not match
  the name of your current branch.  To push to the upstream branch
  on the remote, use
  
      git push origin HEAD:remote/origin/branch-name
  
  To push to the branch of the same name on the remote, use
  
      git push origin branch-name
  </code></pre>
  </blockquote>
  
  <p>How do I force <code>git</code> to automatically push to the upstream branch even if the names don't match? I'm using <code>git 1.9.1</code></p>