title: How do I do an initial push to a remote repository with Git?
body: <p>I've read through countless tutorials and I keep coming up short. Here's what I've got:</p>
  <ul>
  <li>I'm running RubyMine on my Windows desktop</li>
  <li>I've installed Git on my WebFaction hosting account per their <a href="http://docs.webfaction.com/software/git.html?highlight=git#create-a-place-to-store-git-repositories" rel="noreferrer">instructions</a></li>
  <li>Git appears to be working fine on both machines</li>
  </ul>
  <p>Here's what I'm doing:</p>
  <ol>
  <li>On server:
  <ul>
  <li><code>mkdir project</code></li>
  <li><code>git init</code></li>
  <li><code>git add .</code></li>
  <li><code>git commit   #==&gt; nothing to commit</code></li>
  </ul>
  </li>
  <li>On client:
  <ul>
  <li>Create new project in RubyMine</li>
  <li><em>Git init</em> in top directory of project</li>
  <li><em>Push changes</em> to server<code> #==&gt; failed to push some refs to...</code></li>
  </ul>
  </li>
  </ol>
  <p>What steps am I missing?</p>