I have a post-receive hook file that I created which I stored within my project so I can easily set it up on new servers, but I also want it to automatically replace an older version of the hook file whenever I push an updated version of it to live master.
My project file structure:
/var/www/myproject/utils/post-receive
and the path to the post-receive file on my ubuntu server is
/var/repo/myproject.git/hooks/post-receive
What's the easiest way to set this up?