title: How do I create a master branch in a bare Git repository?
body: <pre><code>git init --bare test-repo.git
  cd test-repo.git
  </code></pre>
  <p>(Folder is created with git-ish files and folders inside)</p>
  <pre><code>git status
  </code></pre>
  <p><strong>fatal: This operation must be run in a work tree</strong>
  (Okay, so I can't use git status with a bare repo; makes sense I guess)</p>
  <pre><code>git branch
  </code></pre>
  <p>(Nothing, it seems the bare repo doesn't contain any branches. Do I have to add them from a cloned repo?)</p>
  <pre><code>cd ..
  mkdir test-clone
  cd test-clone
  git clone ../test-repo.git
  </code></pre>
  <p>(I get a warning about cloning an empty repository)</p>
  <pre><code>cd test-repo
  </code></pre>
  <p>(The prompt changes to indicate I am on the master branch)</p>
  <pre><code>git branch
  </code></pre>
  <p>(Shows no results - eh?)</p>
  <pre><code>git branch master
  </code></pre>
  <p><strong>fatal: Not a valid object name: 'master'</strong></p>
  <p>Um. So how do I create the master branch in my bare repo?</p>