title: How to maintain same folder structure in github with git commands
body: <p>I want to <code>track</code> my project folder and its subfolder with <code>node modules</code> together with <code>git add</code>.</p>
  
  <p>But it seems I can't push from my <code>parent</code> to git .</p>
  
  <p>How can I commit my changes into same <code>repository</code> ?</p>
  
  <p>What I am facing issue here if I push from parent the <code>client</code> folder is not updating for the first time. 
  If I make commit from <code>clint</code> the parent is removed fully from my git.
  What changes i needs to make here.</p>
  
  <p>any suggestion.</p>
  
  <p>//gitignore.</p>
  
  <pre><code>node_modules
  package-lock.json
  .env
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ulETS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ulETS.png" alt="Folder structure"></a></p>