title: Git add all subdirectories
body: <p>I'm having trouble adding a folder and all of it's subdirectories to my git repository. I realized this is a very popular question after doing some googling and I've tried each suggestion with no luck, specifically the suggestion from the <a href="http://www.kernel.org/pub/software/scm/git/docs/git-add.html" rel="noreferrer">man page on git-add</a>. I even tried <code>git add -A</code> with no success. For simplicity sake, say I initialized my git repository as <code>Dir1</code>. Then I have the following directory structure of files.</p>
  
  <pre><code>Dir1/file1-1.txt
  Dir1/file1-2.txt
  Dir1/Dir2/file2-1.txt
  Dir1/Dir2/Dir3/file3-1.txt
  </code></pre>
  
  <p>My real files have subdirectories that span 5-6 levels deep, so is there a git command to add all the files in each subdirectory to my repository? Right now, when I do the suggestion from the man page <code>git add Dir1/\*</code> I can see <code>Dir2</code> in my repo, but it shows up as a green folder and I can't open it, which leads me to believe that all the files/folders in <code>Dir2</code> did not get added. Any help would be greatly appreciated. I'm a new git user (less than a week of using it), so try and keep your instructions at a beginner's level.</p>