To begin, I looked at this question which seems to be the only one regarding this topic:
But I do not understand what hook that is or how it is being used. I simply want to run a little script that will update if I git pull and new tag are received.
I tried putting it in: .git/hooks/update, .git/hooks/post-receive
#!/bin/bash
exec < /dev/tty
CURRENT_TAG=$(git tag --contains)
echo Test Test
echo "LATEST_TAG: \"${CURRENT_TAG}"\" > "config/latest_tag.yml"
I would like to use Git hooks if possible. I was thinking of doing alias "git pull"="git pull && ./update_script.sh but I cannot alias a spaced word, n'or can I alias something and enforce the rest of the team to remember it.