title: How to get a detached repository working
body: <p>I am just starting with git.  Using command line.  I created a working direcotry and then a repository inside it.  I have several transactions of add, commit etc for testing.  I then moved the repository to another folder.  The repository is intact as this works.</p>
  
  <pre><code>cd g:\GITREPO
  git status
  </code></pre>
  
  <p>If I now go to the working directory, the git-dir command is not accepted.  What am I doing wrong ?</p>
  
  <pre><code>cd g:\GITTEST
  git --git-dir=G:\GITREPO
  </code></pre>
  
  <p>I get no errors, just a dump of the help.  If I leave out the path then I get " No Directory Given ".  So I have the right command.</p>