I too tried to configure the pre-receive hook to prevent some file type pushing/committing in the origin.
For this, I created the
pre-receive.d file in the exact location and added the below two line to check if the hook working or not,
echo "test bash hook"
But I didn`t get the above text in the git push screen. How can I confirm is this hook working or not?