title: commit a directory named ".git" using git
body: <p>I'm interested in committing a directory named ".git" which sits somewhere inside my repository, but so far I haven't been able to find a way to do this with git.</p>
  
  <p>To clarify, this actually isn't the ".git" folder of my repository, but a resources directory for one of my unit tests, and it just happens to be named ".git". inside of it there's a file named "gitfile".</p>
  
  <p>I've tried using "git add -f" on the directory name, but got these errors:</p>
  
  <pre><code>error: Invalid path '.../.git/gitfile'
  error: unable to add .../.git/gitfile to index
  fatal: adding files failed
  </code></pre>
  
  <p>How can I get around this to commit this directory?</p>