title: Create a remote git repo from local folder
body: <p>I think there must be an easier way to do this. Right now I find myself following these steps:</p>
  
  <p><strong>On the remote:</strong></p>
  
  <pre><code>mkdir my_repo
  cd my_repo
  git init --bare
  </code></pre>
  
  <p><strong>Then locally:</strong></p>
  
  <pre><code>mv my_repo old_my_repo
  git clone ssh://myserver/my_repo
  mv old_my_repo/* my_repo
  rmdir old_my_repo
  cd my_repo
  git add .
  git commit -m 'foo'
  git push origin master
  </code></pre>
  
  <p>Is there some shortcut?</p>