How to implement push commits with GitHub and PHP
http://www.thisprogrammingthing.com/2013/automatically-updating-your-website-using-githubs-service-hooks/
About making it possible to git pull from php/apache
https://stackoverflow.com/questions/5144039/shell-exec-and-git-pull