title: Test git branch local webserver
body: <p>I have some php application in my web root folder (for example: /www/project/)</p>
  
  <p>I want to use git with my project, but I'm very confusing with its utility. For example...</p>
  
  <p>I create a branch "NewContactPage"... so I've two branch: master and NewContactPage. I do some modification over contact.php file (for example) but ¿where I can test this change and compare with "master" contact.php file? (I only have one webroot folder) ¿Have I to archive all project to other webroot If I want to test some feature? Really?!
  `</p>
  
  <p>================ EDIT UPDATE QUESTION ======
  I think that I don't explain very well... I'll tray with an other example.</p>
  
  <p>My local develop environment has one apache web server, where webroot for apache is /user/12345/project/www ok?</p>
  
  <p>In this directory, I've my project (with git), for example, my principal branch is develop. So when I go to <a href="http://localhost" rel="nofollow">http://localhost</a> I can see the index.php for develop, ok?</p>
  
  <p>Well, I follow git flow best practice and for example, I've to create a branch with a new feature, for example, new contact.php page, so I create the branch contactNEW and in this branch I edit contact.php with some code...</p>
  
  <p>So, If I go to <a href="http://localhost/contact.php" rel="nofollow">http://localhost/contact.php</a> (for example) I will see new change (branch contactNEW) but... If I want to visual compare (with the web browser) the two files (develop/contact.php and contactNEW/contact.php) for example in order to see... the "button color" ¿what I've to do?
  I've to copy all branch develop to a new web root folder? or is better to copy all branch contactNEW to other webroot (virtualhost for example) for apache?</p>
  
  <p>I suppose that I've to commit or "undo commit" over repository and then refresh web browser... ¿no?</p>
  
  <p>Thanks</p>