Update my website from a github repository
===

I use a website for testing purposes. Part of what I test is a public repository on GitHub. What I would like to do is have my site periodically check the repository and pull any changes to a folder in my site.

I'm using a LAMP server, is there some php and a cronjob that I can use to check and get the files from the repository?

Thanks 