title: git work tree not a repository
body: <p>I'm trying to set up a remote repo for a live web server. The way I was taught to set this up was to make a post-receive file in the hooks dir like this:</p>
  
  <pre><code>#!/bin/sh
  git --work-tree=/var/www/domain.com --git-dir=/var/repo/site.git checkout -f
  </code></pre>
  
  <p>so that the live web folder doesn't have the git folders in it. </p>
  
  <p>However, if I add files to the work tree, I can't add those to my git repo. It says: fatal: Not a git repository (or any parent up to mount parent ).</p>
  
  <p>I realize this may not be a good idea to do in the first place, but I like the fact that my hosting service has one click install options, which make setting up WordPress, for example, easy.</p>
  
  <p>Is there any way to add these files into the git?</p>