13
Imagine that I have a test environment for a web application, where there is a cloned Github repository that is directly inside the server, and any modification in it already results in a real-time modification when the user accesses it via browser.
My question is, is there any way to add a Listener in this local repository so that whenever there is change in the official repository (Github) it already downloads the changes automatically? Illustration to facilitate understanding:
I’ve been doing some research and I haven’t found anything about it, but I know that to update my local repository, the command would be:
$ git pull origin master
Is there a Git or Gulp solution for this type of Listener?
I don’t know if that would be the case, but have you thought of a cron task for that? Another option would be to search for Git Hooks.
– leozera