title: git clone from local to remote
body: <p>We're in the process of migrating from Mercurial to Git for our workflow and I have two minor issues.</p>
  
  <p>First, is it possible to "clone" a local repository directly into an empty remote (ssh) dir?</p>
  
  <p>Currently when we create a new website we basically clone our CMS locally, configure it and then we clone it on the central repo and on the webserver (<code>hg clone . ssh://account@server/www</code>). That way we have instant access to push/pull goodness. </p>
  
  <p>This brings me to the second issue, remote deployment.</p>
  
  <p>Currently with Mercurial, I have a simple hooks in the remote repos that execute <code>hg up</code> when a changeset is received.</p>
  
  <p>To do the same with Git I've followed the instructions here: <a href="http://caiustheory.com/automatically-deploying-website-from-remote-git-repository" rel="noreferrer">http://caiustheory.com/automatically-deploying-website-from-remote-git-repository</a> but I'd like to keep the .git directory in the website root as it is the case with Mercurial (it's protected by Apache config and I can't export GIT_DIR for all accounts as some have more than one website/repos).</p>
  
  <p>Is it possible to have basically the same setup without separating the working dir from the repos?</p>