Search code examples
gitgit-tower

Git Tower push - pull automation


I am using Tower for my source control and would like to know if there is a way to create automation for every push I make to github/bitbucket/etc it will also automatically call pull to my live box (for example my personal .com). Any suggestions? Thanks.


Solution

  • You could do this with a githook for the post-update event. Git hooks are shell scripts which are executed after certain actions. You could write a script which either remotely logs into the live box and does a pull or which does an additional push to the live box.