title: multiple git repositories cloned into the same directory
body: <p>I've got a standard repository for my project  </p>
  
  <pre><code>/home/repo/.git  
  </code></pre>
  
  <p>this is the repository i clone to get the base code for new websites
  i.e. i cloned this to </p>
  
  <pre><code>/var/www/site1
  </code></pre>
  
  <p>i also have several modules that i've created as repositories, some websites will be using these modules and some will not.   </p>
  
  <pre><code>/home/modules/mod1/.git  
  /home/modules/mod2/.git
  </code></pre>
  
  <p>is there a way that i can clone those modules into the same site folder?  </p>
  
  <pre><code>/var/www/site1  
  </code></pre>
  
  <p>the module directories are set up with the same folder structure as the master repo, when i clone them on top of the master repo clone they should merge/replace existing files. (rarely any file overlap)</p>
  
  <p>my optimal solution would be naming the repo's in some way so that when i deploy a new site I do something like:</p>
  
  <pre><code>cd /var/www/newsite  
  git clone /home/repo/.git  
  git clone /home/modules/mod1/.git  
  git clone /home/moudles/mod2/.git  
  </code></pre>
  
  <p>and when I have updates to make to the site I could do a pull like:</p>
  
  <pre><code>git pull origin master  
  git pull mod1  
  git pull mod2  
  </code></pre>
  
  <p>or  preferably:</p>
  
  <pre><code>git pull origin master 
  </code></pre>
  
  <p>would also call the pulls on <code>mod1</code> and <code>mod2</code>.</p>
  
  <p>I've been looking at git submodules and branches but can't figure out if they are what I need.</p>