I am working on a site with a server running Git. I am using Git for deployment (not GitHub). This was set up prior to my involvement using a hook method, and I referred to this
git fetch --all git checkout origin/master -- git add git commit -m " updated"
This is assuming you are pulling the file from origin/master.