title: GitHub - setup auto deployment with remote server
body: <p>Currently, my production website is hosted on Azure. I use git and push all my commits to GitHub. With the magic of <code>git hooks</code> Azure has the ability to pull from GitHub when someone pushes a certain branch to GitHub.</p>
  
  <p>How can I replicate this with my own staging server hosted on-premise? In other words, how can I set a repo on GitHub, and when I push to it, through git hooks send a signal, request or what-have-you to perform an automatic pull on my on-premise server?</p>
  
  <p>I know Git is not a deployment software, but if I have to write a mechanism on my on-prmise server to make this happen I would like to know where to start. If it's helpful, we use Microsoft technology, so we are running our staging server on Windows Server, while our production is on Azure.</p>
  
  <p>I understand that I'll need to use callback url on my server to then perform whatever is needed.I would like to know what methods people use to accomplish this. e.g.: on my call back url, how would I call a script to run a pull/fetch/clone bash command. or other method.</p>
  
  <p>If you need more information, feel free to ask.</p>