0

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?

Blake Bell
  • 376
  • 5
  • 16
  • Does this answer your question? [Can Git hook scripts be managed along with the repository?](https://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository) – phd Jan 16 '20 at 18:29
  • https://stackoverflow.com/search?q=%5Bgit%5D+distribute+hooks+repository – phd Jan 16 '20 at 18:29

0 Answers0