title: How to manage git branches with local webservers?
body: <p>I'm in the process of moving from svn to git, and I'm wondering how to manage our local development webservers along with the new git system.</p>
  
  <p>Right now, a developer can have multiple checkouts of the development branch.  Each of those checkout directories are mapped to the webserver with various virtual hosts.</p>
  
  <p>For instance, developer bob may have 3 checkouts of dev for various tickets.  Each of those checkouts have their own virtual host bob.dev1.localhost, bob.dev2.localhost, and bob.dev3.localhost.</p>
  
  <p>When they're done with a ticket, they'll mark down on the ticket the host the changes reside on and move the ticket over to QA.  That seems relatively straight forward.</p>
  
  <p>Now, with git, having multiple checkout directories doesn't make sense.  The dev can just branch the development branch and work on a clean slate, and just checkout a different branch whenever they need to change gears.</p>
  
  <p>Is there a way to have the local dev websevers point to specific local git checkouts?  For instance the developer makes a new branch, makes their changes, and then passes the branch name as part of host, and then whenever someone hits the webserver, the local branch is checked out if it's not already, and we can pass QA Urls specific to tickets?  For example bob.branch1.localhost, bob.branch2.localhost.</p>
  
  <p>If none of this makes any sense, I wouldn't be surprised.  If you have any suggestions on how to do this based on your own development workflow, I'd love to hear it.</p>