So I want to add our git repo to the server so that we can pull in the latest changes from the master branch and easily update the live sites via SSH.
I don't want changes tracked by Git on the live site though, I want it to only be able to pull in new changes from the master branch as new features will be developed on local machines and reviewed for QA on staging sites prior to the production server being updated.
What is the best way to achieve this? Is there also a way to exclude certain files from being pulled in from the repo on the production server?
For an example, we version control our gulp files for concatenating scripts/styles, but this does not need to be pulled in on the live site/production server.