I have been using Git and TortoiseGit for a few months now and have questions on it's functionality.
Currently we use it exclusively for web development. We push the branch to a Beansstalk repo and it deploys it to our webserver (www.mydomain.com). We also push branches (i.e. dev) to beanstalk that in turn pushes it to a subdomain for development/testing (dev.mydomain.com).
In order to view web pages we are working on by pushing them to the repo and deploying to our dev domain seems very inefficient. I would like to be able to view the dev branch files on my machine through a local web server as I change them prior to making commits. I'm sure this is simple however with Git involved I have some questions.
1) If I have my files (on a local network file server) switched to a dev branch, can I run a local (client) webserver and view the dev branch files through a local (client) web browser? I assume yes, and that when I switch back to the master branch, the files viewed in the web browser will be of the master branch.
2) Can I run a webserver on the network file server that the files reside on and view the branch, or will the server only serve the master files?
I'm guessing it is easiest/best if I run a client webserver on the machine that is running and working on the git versioned files...
Any advice that would be different and better?
Thank you for your help! =)