title: Git push doesnt upload folders inside main folder
body: <p>I have the following projects in a folder structure.</p>
  
  <ul>
  <li><p>Homework</p>
  
  <ul>
  <li>Ex1
  <ul>
  <li>main.cpp</li>
  <li>class1.cpp</li>
  <li>readme.txt</li>
  </ul></li>
  <li><p>Ex2</p>
  
  <ul>
  <li>main.cpp</li>
  <li>class2.cpp</li>
  <li>readme.txt</li>
  </ul></li>
  <li><p>Ex3</p>
  
  <ul>
  <li>main.cpp</li>
  <li>class3.cpp</li>
  <li>readme.txt</li>
  </ul></li>
  <li>readme.txt</li>
  </ul></li>
  </ul>
  
  <p>I want to submit this whole 'project' to a given repository(which I've already set up). So I first did cd to the Homework directory and did </p>
  
  <pre><code>$git init
  </code></pre>
  
  <p>Then I did </p>
  
  <pre><code>$git add --all
  </code></pre>
  
  <p>After that I commited by </p>
  
  <pre><code>$git commit -m "Adding all folders"
  </code></pre>
  
  <p>Then did the push as </p>
  
  <pre><code>$git push origin master
  </code></pre>
  
  <p>After this when I opened the repository URL on browser I see only the readme.txt in Homework directory. I don't see the Ex1,Ex2,Ex3 folders and their contents.</p>
  
  <p>What am I doing wrong here?</p>