title: How to set up a single git source on a single server deploying to both staging and production
body: <p>As a sole developer on a project, I'm trying to thrash out a simple development and deployment workflow with git, constrained by using a single server for staging and production.</p>
  <p>The production path is <code>/var/www/vhosts/site.com</code></p>
  <p>The staging path is <code>/var/www/vhosts/staging.site.com</code></p>
  <p>I understand how to create a branch for staging and that it's best to have <a href="http://joemaller.com/990/a-web-focused-git-workflow/" rel="nofollow noreferrer">prime (live site code) and hub (clone codebase) repos</a> on the server, and then create a local working clone from the hub. But how do I create a git repo in <code>/var/www/vhosts/</code> that serves both production and staging? Do I need separate repos?</p>