title: How can I safely commit a .git directory
body: <p>I am working on a git-related software and I have included unit tests  in my code.  </p>
  
  <p>I have created a test git project (under a subdirectory) to be used by the tests: <code>resources/test-git-project</code><br>
  This test git project is not associated to any remote, but it contains commits/tags/branches.</p>
  
  <p>What is the safest way to commit the contents of <code>resources/test-git-project</code> in git?</p>