title: git-how to maintain multiple repositories inside one repository
body: <p>Probably this can be solved using <a href="https://git-scm.com/book/en/v2/Git-Tools-Submodules" rel="nofollow noreferrer">submodules</a>, but I don't know how in this case.</p>
  
  <p>I am thinking of this hierarchy:</p>
  
  <pre><code>web-app-repo/
     .git
     README.md
     fontend-repo/
        .git
        README.md
     backend-repo/
        .git
        README.md
  </code></pre>
  
  <p>The web-app-repo is a remote one. The other two repos are local ones.
  If possible, how can I do this?</p>
  
  <p>I need to be able to make updates on my machine and push commits to their respective remote repos.</p>