Ah, could you elaborate a little bit? I am guessing when you check in to code to github, you have a webhook set up that triggers a script that's present on your build machine.
Git is also very powerful took which has own hooks without any web hooks. Here is a great intro article about Git hooks and how you can automate and save your time both on local machine and on server