I used git 1.7.1 on CentOs 6 server, and when I ran git --bare init
on my_repo.git, I checked my_repo.git / hooks and I could see all the hooks, including post-receive.sample .
Now I use git 2.4.1 on the Centos 7 server, and the post-receive.sample file is missng, all the other hooks are there, but not the one I need.
I know that I can copy the file from the previous repo and then change the contents as needed, but I would like to know why post-receive.sample is not created as before.
source
share