At the minute I have a local git repo which sits in H: drive. When I make changes to the files and save them, they are stored here. I can then commit, push and pull the files and branches to and from a remote repo on my git server.
What I would like to do is work on files and instead of saving them to the local H drive I would like to save them onto my test server, so that they can be run and tested from that server in a browser. When all of the testing is complete I would like to merge the files from the test server to the live server and have them there as the live system or would I need to pull files from my test server and from my live server and merge them locally and push the master branch back to the live server?
Also when the branches are merged into my live master branch and pushed to the live server, how would I 'unpack' all of the files from the git repo so they can run as the live site.
I have experimented with git archive
and read up on git bundle
to try and see if this would allow me to do an 'unpack' of sorts, but so far I haven't been able to achieve anything I can really work with.
Is it possible for this to work the way which I have described it and if so how would you go about doing it?
If it isn't possible or if there is a better way to do this which I have overlooked, please let me know.