title: Git Push Branch Other Than Master
body: <p>I've looked for a solid answer on this, and haven't really found anything relevant. We are working with a remote git repository where we are pushing branch that is not master to the remote repo. For example:</p>
  
  <pre><code>git checkout -b new_branch
  git add --all .
  git commit -m "changes"
  git push remote new_branch
  </code></pre>
  
  <p>However, when we try to clone from that bare remote repository, we get the error:</p>
  
  <pre><code>git clone /path/to/repo.git 
  
  warning: remote HEAD refers to nonexistent ref, unable to checkout.
  </code></pre>
  
  <p>I'm not sure why HEAD is detached and not pointing to the last commit on new_branch? How can we clone this remote repository?</p>