title: Create new git repository inside subfolder by git init and ignore in the main git repo
body: <p>I have tried to understand git submodule. It seems complicated (I don't have any experience with submodule). It might be worth to invest some time. But, right now I am having some questions related to git submodule.</p>
  
  <p>Actually what I am trying is:</p>
  
  <ul>
  <li>having a main repository, inside the main repository I would like to create a new (sub)repository. So what I did: 
  <br> - First) create folder (ABC).
  <br> - Second) in the main repository ignore the folder (ABC).
  <br> - Third) in de folder (ABC), git init (to create a new repository)</li>
  </ul>
  
  <p>Is this the right way to create a sub-repository (or possibly right direction)?</p>
  
  <p>Is git submodule kind of the same as I did like above?</p>
  
  <p>Thanks in advance.</p>