The article shows you how to deploy a simple website using no more than a git post-receive hook. It covers just enough background information so that the reader can go further and expand their knowledge as their time permits.
read : http://www.sitepoint.com/one-click-app-deployment-server-side-git-hooks/