title: how to push to another branch
body: <p>I have my local initialized git repo, I can push to my github repo via:</p>
  
  <pre><code>git push github master
  </code></pre>
  
  <p>Then, I decided to create another branch at my remote repo, named rails4</p>
  
  <p>To push to the new brach, I tried:</p>
  
  <pre><code>git push github rails4
  </code></pre>
  
  <p>But, I get this error:</p>
  
  <pre><code>error: src refspec rails4 does not match any.
  error: failed to push some refs to 'https://github.com/hopewise/dcaclab-website.git'
  </code></pre>
  
  <p>What do I miss?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I found that I am trying to push to a different remote branch while my current local branch is at master, what I did is:</p>
  
  <pre><code>git branch rails4
  git checkout rails4
  git push github rails4
  </code></pre>