To install this hook you have to create a pre_push
file inside .git/hooks/
and paste there the script written below.
Next you have to set execute permisions with following command:
$ chmod a+x pre_push
Don't forget to change the project name inside the script.