title: How to push from one branch to another and checkout?
body: <p>I am trying to implement the setup outlined here <a href="http://toroid.org/ams/git-website-howto" rel="noreferrer">http://toroid.org/ams/git-website-howto</a> but with one difference. On my local repository I want to use a branch different to master.</p>
  
  <p>So when I go to push the initial files rather than push the master files I want to push the files from my demo branch to the master branch on the remote repository. For example:</p>
  
  <pre><code>git push web +master:refs/heads/demo
  </code></pre>
  
  <p>But when I do this I get the following error after it completes uploading all of the files:</p>
  
  <pre><code>remote: fatal: You are on a branch yet to be born
  </code></pre>
  
  <p>Is it possible to do what I am trying to do with this setup?</p>