title: How to convert existing non-empty directory into a Git working directory and push files to a remote repository
body: <ol>
  <li><p>I have a non-empty directory (eg /etc/something) with files that cannot be renamed, moved, or deleted.</p></li>
  <li><p>I want to check this directory into git in place.</p></li>
  <li><p>I want to be able to push the state of this repository to a remote repository (on another machine) using "git push" or something similar.</p></li>
  </ol>
  
  <p>This is trivial using Subversion (currently we do it using Subversion) using:</p>
  
  <pre><code>svn mkdir &lt;url&gt; -m &lt;msg&gt;
  cd &lt;localdir&gt;
  svn co &lt;url&gt; .
  svn add &lt;files etc&gt;
  svn commit -m &lt;msg&gt;
  </code></pre>
  
  <p>What is the git equivalent?</p>
  
  <p>Can I "git clone" into an empty directory and simply move the .git directory and have everything work?</p>