title: Using a single git repository for multiple git projects
body: <p>I'm cheap. I don't want to pay for many  github accounts. </p>
  
  <p>I have a project structure which looks something like this. </p>
  
  <ul>
  <li><strong>/repo</strong> is the project root. </li>
  <li><strong>/repo/project1</strong> is where I have a Java project</li>
  <li><strong>/repo/herokurails1</strong> is where I have a Ruby/Rails project which deploys to heroku.com (to a heroku app called hr1-fubar.heroku.com)</li>
  <li><strong>/repo/herokurails2</strong> is where I have another Ruby/Rails project which deploys to heroku.com (to a heroku app called hr2-fubar.heroku.com).</li>
  </ul>
  
  <p>All projects (project1, herokurails1, and herokurails2 are under active development). </p>
  
  <p>I would like to have one repository at some git hosting place such as github.com or even a local git server in the office. Whenever code changes anywhere in <strong>/repo/</strong>, I want to be able to run "<strong>git push github master</strong>" and have my entire <strong>/repo/</strong> tree pushed up to github. </p>
  
  <p>However, I would also like to be able to deploy my rails apps to heroku.com without pushing the entire repo/* tree pushed to each heroku app. e.g.</p>
  
  <ul>
  <li><strong>/repo/herokurails1> git push heroku master</strong> would only deploy the herokurails1 project to heroku  without pushing up any other code in /repo/*</li>
  <li><strong>/repo/herokurails2> git push heroku master</strong> would only deploy the herokurails2 project to heroku also without pushing up any other code in /repo/*. </li>
  </ul>
  
  <p>Is this possible? Do I need to set up anything special to make this happen? Or am I stuck with multiple git repositories?</p>